A newer version of Max is available. Click here to access the latest version of the documentation

strippath Reference

Separate filename from a full pathname

strippath

Description

Removes path information from a complete file path. strippath also tells you whether the resulting filename is in the search path or not.

Examples

strippath removes path information from a file pathname, and leaves the name of the file

Arguments

None.

Attributes

Common Box Attributes

Messages

anything

Arguments

filepath [symbol]
An absolute pathname as a symbol. An absolute pathname looks like this:

"MyDisk:/Max Folder/extras/filename"

Output

int

Out right outlet: If the file was found within the current Max search path a 1 is sent out the right outlet. A 0 is sent otherwise.

symbol

Out left outlet: The file name, with all path information preceding it removed.

See Also

Name Description
absolutepath
conformpath
dropfile
opendialog
relativepath
savedialog