@strip_path(path:string)


returns a tab of two strings. The first denotes the parent directory of the pathname pointed to by path. Any trailing / characters are not counted as part of the directory name. If path is an empty string, or contains no / characters, the returned string is ".", signifying the current directory.

The second element of the returned tab is the last component from the pathname pointed to by path, deleting any trailing / characters. If path consists entirely of / characters, the string "/" is returned. If path is the empty string, "." is returned.

       _ := @strip_path("/Users/Shared/Max 7/Examples/utilities/latency-test.maxpat")
-> [ "/Users/Shared/Max 7/Examples/utilities",  "latency-test.maxpat" ]


Most functions acting on tabs operate also on strings.