file-dirname pathName
Retrieves the directory part of a path name.
Some pathName may have no parent directory. This is the case of root directories (e.g. "/" in unix, "c:\" in windows).