Mdirname
Bun

method

path.default.PlatformPath.dirname

path: string
): string;

Return the directory name of a path. Similar to the Unix dirname command.

@param path

the path to evaluate.