std.filesystem.StripDir - nitrologic/monkey2 GitHub Wiki

std::std.filesystem.StripDir

Function StripDir:monkey:monkey.types.String( path:monkey:monkey.types.String )

Strips the directory component from a filesystem path.

If path is a root directory an empty string is returned.

If path does not contain a directory component, path is returned without modification.

Parameters
path path The filesystem path.