get file extension from filepath
get base name from filepath
string; filepath, relative or absolute
(optional) options as specified below
If true, return the file extension in uppercase. As file extensions may be in mixed case, this option may simplify code handling file extensions.
The Extension and Basename commands return the extension and base name, respectively, of the file referenced by the filepath, path.
Extension("name.ext") returns "ext" and Basename("name.ext") returns "name". Both commands omit any directories listed in path.
The filepath, path, must be syntactically correct but is not required to correspond to an existing file or directory.
The following path does not correspond to an existing file.
The FileTools[Extension] and FileTools[Basename] commands were introduced in Maple 18.
For more information on Maple 18 changes, see Updates in Maple 18.
The FileTools[Basename] command was updated in Maple 2017.
Download Help Document
What kind of issue would you like to report? (Optional)