A
string
designating a filename in native namestring syntax.Note that native namestring syntax is distinct from Lisp namestring syntax:
(pathname "/foo*/bar")is a wild pathname with a pattern-matching directory component.
sb-ext:parse-native-namestring
may be used to construct Lisp pathnames that denoteposix
filenames as understood by system calls, andsb-ext:native-namestring
can be used to coerce them into strings in the native namestring syntax.Note also that
posix
filename syntax does not distinguish the names of files from the names of directories: in order to parse the name of a directory inposix
filename syntax into a pathnamemy-defaults
for which(merge-pathnames (make-pathname :name "FOO" :case :common) my-defaults)returns a pathname that denotes a file in the directory, supply a true
:as-directory
argument tosb-ext:parse-native-namestring
. Likewise, to supply the name of a directory to aposix
function in non-directory syntax, supply a true:as-file
argument tosb-ext:native-namestring
.