The
Path.getExtension function returns the file extension for the path specified in the string expression
path_string. The extension will begin with a
".". If the file does not have an extension, a blank string is returned.
The function returns the extension extracted from the full path.