: '''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** * [file] * [file join] * [file separator] <> Tcl syntax help | Command | File