Get the directory name of a path, similar to the Unix dirname command. When an empty path is given, returns the root path.
The file path.
Get the directory name of a path, similar to the Unix dirname command. When an empty path is given, returns the root path.