Returns the directory component of the filename with the content directory removed from the beginning if it is present.
Returns the extension (the portion of file name in path after the period). This method excludes the period from the extension name.