getFileExtension

Gets the file extension of the current path, if it exists.

Return

the file extension of the file, including the dot (e.g. .png)