FilePath.directoryName

string directoryName()

Returns the path with the filename cut off.