get file name from filepath
get parent directory from filepath
string; filepath, relative or absolute
The Filename and ParentDirectory commands return the file name and the parent directory, respectively, of the file referenced by the filepath path.
The filepath path must be syntactically correct, but is not required to correspond to an existing file or directory.
The behavior of this command may dependent on the platform on which it is executed and the character used to delimit directories on the current platform.
The following path does not correspond to an existing file.
Download Help Document
What kind of issue would you like to report? (Optional)
Thank you for submitting feedback on this help document. Your feedback will be used
to improve Maple's help in the future.