Updated 2011-07-03 11:10:20 by dkf
file split name

Returns a list whose elements are the path components in name. The first element of the list will have the same path type as name. All other elements will be relative. Path separators will be discarded unless they are needed ensure that an element is unambiguously relative. For example, under Unix
 file split /foo/~bar/baz

returns / foo ./~bar baz to ensure that later commands that use the third component do not attempt to perform tilde substitution.

See also edit