@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" ]

See also System Related Functions @arch_darwin,    @arch_linux,    @arch_windows,    @compilation,    @configuration_arch,    @configuration_audiosample,    @configuration_debug,    @configuration_faust,    @configuration_host,    @configuration_release,    @configuration_target_architecture,    @current_load_directory,    @directory_read,    @exe_child_of,    @exe_parent,    @history_length,    @host_date,    @info,    @is_fastforward,    @is_following_on,    @is_paused,    @is_playing_on,    @is_running,    @is_stopped,    @max_absolute_path,    @max_patch_path,    @pwd,    @strip_path,    @system,    @Tracing,    @time,    @typecheck,    @UnTracing    @usage_resident_memory_size,    @usage_statistics,    @usage_virtual_memory_size    @user_directory    String Management @car,    @cdr,    @char_is_alnum,    @char_is_alpha,    @char_is_ascii,    @char_is_blank,    @char_is_cntrl,    @char_is_digit,    @char_is_graph,    @char_is_lower,    @char_is_print,    @char_is_punct,    @char_is_space,    @char_is_upper,    @char_is_xdigit,    @copy,    @count,    @drop,    @dump,    @dumpvar,    @empty,    @explode,    @find,    @is_prefix,    @is_string,    @is_subsequence,    @is_suffix,    @last,    @member,    @occurs,    @parse,    @permute,    @push_back,    @r_compile,    @r_findall,    @r_match,    @r_search,    @remove,    @remove_duplicate,    @replace,    @scramble,    @slice,    @sort,    @sputter,    @string2fun,    @strip_path,    @stutter,    @string2proc,    @system,    @take    @to_num,    @Tracing,    @UnTracing