All Manuals > LispWorks® User Guide and Reference Manual > 33 The COMMON-LISP Package

merge-pathnames Function

Summary

Merges two pathnames.

Package

common-lisp

Signature

merge-pathnames pathname &optional default-pathname default-version => merged-pathname

Arguments
pathname
A pathname designator.
default-pathname
A pathname designator.
default-version
A valid pathname version.
Values
merged-pathname
A pathname.
Description

The function merge-pathnames and its use of pathname, default-pathname and default-version are as specified in ANSI Common Lisp with some extensions.

On Windows, when pathname is an UNC pathname, or the host component of pathname is nil and default-pathname is an UNC pathname, then merge-pathnames returns an UNC pathname. See 27.18.5 Windows UNC pathnames (Windows only) for a discussion of UNC pathnames on Windows.

See also

merge-pathnames in the Common Lisp HyperSpec
27.18.5 Windows UNC pathnames (Windows only)


LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:30