Previous: File-descriptors, Up: Types
A
stringdesignating 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-namestringmay be used to construct Lisp pathnames that denoteposixfilenames as understood by system calls, andsb-ext:native-namestringcan be used to coerce them into strings in the native namestring syntax.Note also that
posixfilename syntax does not distinguish the names of files from the names of directories: in order to parse the name of a directory inposixfilename syntax into a pathnamemy-defaultsfor 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-directoryargument tosb-ext:parse-native-namestring. Likewise, to supply the name of a directory to aposixfunction in non-directory syntax, supply a true:as-fileargument tosb-ext:native-namestring.