Function FilePath.directoryName

Returns the path with the filename cut off.

string directoryName();