Previous: Time, Up: Osicat


1.7 Pathname Utilities

— Function: absolute-pathname-p pathspec

Returns t if the pathspec designates an absolute pathname, nil otherwise.

— Function: absolute-pathname pathspec &optional default

Returns an absolute pathname corresponding to pathspec by merging it with default, and (CURRENT-DIRECTORY) if necessary.

— Function: directory-pathname-p pathspec

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.

— Function: pathname-as-directory pathspec

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

— Function: pathname-as-file pathspec

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

— Function: pathname-directory-pathname pathspec

Returns the directory part of pathspec as a pathname.

— Function: relative-pathname-p pathspec

Returns t if the pathspec designates a relative pathname, nil otherwise.

— Function: unmerge-pathnames pathspec &optional default

Removes those leading directory components from pathspec that are shared with default.