method path.PlatformPath.dirname Usage in Denoimport { type path } from "node:path"; PlatformPath.dirname(path: string): string Return the directory name of a path. Similar to the Unix dirname command. Parameters path: string the path to evaluate. Return Type string