[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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
path | string |
Returns
Section titled “Returns”string