Extracts the directory from path.
Full path containing the filename and the directory
The directory name
See Implementation
Extracts the directory from path.