fad

Function summary
component-present-p value
copy-file from to &key overwrite
copy-stream from to
delete-directory-and-files dirname &key (if-does-not-exist :error)
directory-exists-p pathspec
directory-pathname-p pathspec
directory-wildcard dirname
file-exists-p pathspec
list-directory dirname
pathname-as-directory pathspec
pathname-as-file pathspec
walk-directory dirname fn &key directories (if-does-not-exist :error) (test (constantly t))
*hyperdoc-base-uri*    [Variable]
component-present-p   value  [Function]

Helper function for DIRECTORY-PATHNAME-P which checks whether VALUE is neither NIL nor the keyword :UNSPECIFIC.

directory-pathname-p   pathspec  [Function]

Returns NIL if PATHSPEC (a pathname designator) does not designate a directory, PATHSPEC otherwise. It is irrelevant whether file or directory designated by PATHSPEC does actually exist.

pathname-as-directory   pathspec  [Function]

Converts the non-wild pathname designator PATHSPEC to directory form.

directory-wildcard   dirname  [Function]

Returns a wild pathname designator that designates all files within the directory named by the non-wild pathname designator DIRNAME.

list-directory   dirname  [Function]

Returns a fresh list of pathnames corresponding to the truenames of all files within the directory named by the non-wild pathname designator DIRNAME. The pathnames of sub-directories are returned in directory form - see PATHNAME-AS-DIRECTORY.

pathname-as-file   pathspec  [Function]

Converts the non-wild pathname designator PATHSPEC to file form.

file-exists-p   pathspec  [Function]

Checks whether the file named by the pathname designator PATHSPEC exists and returns its truename if this is the case, NIL otherwise. The truename is returned in `canonical' form, i.e. the truename of a directory is returned as if by PATHNAME-AS-DIRECTORY.

directory-exists-p   pathspec  [Function]

Checks whether the file named by the pathname designator PATHSPEC exists and if it is a directory. Returns its truename if this is the case, NIL otherwise. The truename is returned in directory form as if by PATHNAME-AS-DIRECTORY.

walk-directory   dirname fn &key directories (if-does-not-exist :error) (test (constantly t))  [Function]

Recursively applies the function FN to all files within the directory named by the non-wild pathname designator DIRNAME and all of its sub-directories. FN will only be applied to files for which the function TEST returns a true value. If DIRECTORIES is not NIL, FN and TEST are applied to directories as well. If DIRECTORIES is :DEPTH-FIRST, FN will be applied to the directory's contents first. If DIRECTORIES is :BREADTH-FIRST and TEST returns NIL, the directory's content will be skipped. IF-DOES-NOT-EXIST must be one of :ERROR or :IGNORE where :ERROR means that an error will be signaled if the directory DIRNAME does not exist.

copy-stream   from to  [Function]

Copies into TO (a stream) from FROM (also a stream) until the end of FROM is reached. The streams should have the same element type.

copy-file   from to &key overwrite  [Function]

Copies the file designated by the non-wild pathname designator FROM to the file designated by the non-wild pathname designator TO. If OVERWRITE is true overwrites the file designtated by TO if it exists.

delete-directory-and-files   dirname &key (if-does-not-exist :error)  [Function]

Recursively deletes all files and directories within the directory designated by the non-wild pathname designator DIRNAME including DIRNAME itself. IF-DOES-NOT-EXIST must be one of :ERROR or :IGNORE where :ERROR means that an error will be signaled if the directory DIRNAME does not exist.