Skip to content

Std filesystem extractdir

std:std.filesystem.ExtractDir

Function ExtractDir:String( path: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.