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