The
Path.getFileName function returns the file name for the path specified in the string expression
path_string. The file name will include the extension of the file; to get the file name without the extension, use the
Path.getFileNameWithoutExtension function.
The function returns a string with the directory name removed from the full path.