Skip to content

[F] getDirectoryPath

function getDirectoryPath(path): string;

Get a path’s containing directory with forward slashes, preserving a root when the path is itself a root.

ParameterType
pathstring

string