Files

directory pathspec &key ⇒ pathnames

probe-file pathspec ⇒ truename

ensure-directories-exist pathspec [:verbose] ⇒ pathspec, created

truename filespec ⇒ truename

file-author pathspec ⇒ author

file-write-date pathspec ⇒ date

rename-file filespec new-name ⇒ defaulted-new-name, old-truename, new-truename

delete-file filespec ⇒ t

file-length

file-position

file-string-length

with-open-file

file-error-pathname condition ⇒ pathspec

alexandria:read-file-into-string pathname [:buffer-size :external-format]

alexandria:read-file-into-byte-vector pathname

Pathnames

*default-pathname-defaults* = pathname

Implementation-dependent pathname used as the default whenever a function needs a pathname and one is not supplied. Typically, the working directory where Common Lisp was started up.

user-homedir-pathname [host] ⇒ pathname

pathname pathspec ⇒ pathname

make-pathname [:host :device :directory :name :type :version :defaults :case] ⇒ pathname

pathname-host pathname &key case ⇒ host

pathname-device pathname &key case ⇒ device

pathname-directory pathname &key case ⇒ directory

pathname-name pathname &key case ⇒ name

pathname-type pathname &key case ⇒ type

pathname-version pathname &key case ⇒ version

load-logical-pathname-translations host ⇒ just-loaded

logical-pathname-translations host ⇒ translations

setfable.

logical-pathname pathspec ⇒ logical-pathname

namestring pathname ⇒ namestring

file-namestring pathname ⇒ namestring

directory-namestring pathname ⇒ namestring

host-namestring pathname ⇒ namestring

enough-namestring pathname [defaults] ⇒ namestring

parse-namestring thing [host default-pathname :start :end :junk-allowed] ⇒ pathname, position

translate-logical-pathname pathname &key ⇒ physical-pathname

translate-pathname source from-wildcard to-wildcard &key ⇒ translated-pathname

merge-pathnames pathname [default-pathname default-version] ⇒ merged-pathname

Predicates

pathnamep object ⇒ boolean

wild-pathname-p pathname [field-key] ⇒ boolean

pathname-match-p pathname wildcard ⇒ boolean