RSS Feed

Lisp Project of the Day


You can support this project by donating at:

Donate using PatreonDonate using Liberapay

Or see the list of project sponsors.


This library brings Python's os.path API into the Common Lisp world.

It manipulates by strings rather than by CL's pathnames.

Ppath has pretty good documentation. I'll show only one example description of all available functions you'll find in the docs:

POFTHEDAY> (ppath:join "." "foo" "bar")

POFTHEDAY> (ppath:exists (ppath:join "/tmp/" "foo"))

POFTHEDAY> (ppath:abspath ".")

POFTHEDAY> (ppath:dirname (ppath:abspath "."))

POFTHEDAY> (ppath:splitext "/tmp/some-file.jpg")
("/tmp/some-file" . ".jpg")

POFTHEDAY> (ppath:expandvars "/home/${LOGNAME}/bin")

Brought to you by 40Ants under Creative Commons License