Skip to main content
method path.PlatformPath.dirname
PlatformPath.dirname(path: string): string
Deprecated

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

Parameters

path: string

the path to evaluate.

Return Type

string

Throws

TypeError

if path is not a string.

Back to top