function dirnameimport { dirname } from "https://dotland.deno.dev/std@0.224.0/path/posix/dirname.ts"; dirname(path: string): stringReturn the directory path of a path. ExamplesExample 1 import { dirname } from "https://deno.land/std@0.224.0/path/dirname.ts"; console.log(dirname("/home/user/Documents/")); // "/home/user" console.log(dirname("/home/user/Documents/image.png")); // "/home/user/Documents" Parameterspath: string path to extract the directory from. Returnsstring