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