Skip to content
Ramil Farkhshatov edited this page Dec 27, 2011 · 2 revisions

Pathnames

path-dirname

(0-) (path-dirname "one/two/three")
"one/two"

(1-) (path-dirname "one/two/")
"one/two"

path-tail

(0-) (path-tail "one/two/three")
"three"

(1-) (path-tail "one/two/")
"two"

path-extension

(0-) (path-extension "three.tar.gz")
".gz"

(1-) (path-extension "three.tar")
".tar"

(2-) (path-extension "one.two/three")
""

path-strip-extension

(0-) (path-extension "one/two/three.tar.gz")
"one/two/three.tar"

(1-) (path-tail "one/two/three.tar")
"one/two/three"

(2-) (path-tail "one.two/three")
"one.two/three"

path-join

(0-) (path-join ["one" "two" "three"])
"one/two/three"

path-split

(0-) (path-split "one/two/three")
["one" "two" "three"]

(1-) (path-split "/one/two/three")
["/" "one" "two" "three"]

path-separator

path-normalize

path-nativename

Clone this wiki locally