method default.PlatformPath.dirnamePlatformPath.dirname(path: string): stringDeprecatedReturn the directory name of a path. Similar to the Unix dirname command. Parameterspath: stringthe path to evaluate. Return TypestringThrowsTypeErrorif path is not a string.