std.filesystem.ExtractDir - nitrologic/monkey2 GitHub Wiki

std::std.filesystem.ExtractDir

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

Extracts the directory component from a filesystem path.

If path is a root directory it is returned without modification.

If path does not contain a directory component, an empty string is returned.

Parameters
path path The filesystem path.