Function | Package: excl | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 version

## path-namestring

Arguments: filespec

This function returns the namestring of the pathname which includes the path portion of filespec (with pathname-name or pathname-type both `nil`). On Windows, the result may include pathname-host and pathname-device information. That is, this function returns the result of applying namestring to path-pathname:

    (namestring (path-pathname filespec))

filespec should be a Common Lisp pathname designator, that is a pathname, a string naming a pathname, or a stream open to a file.

### Examples

    (path-pathname "/foo/bar/baz.cl") RETURNS #p"/foo/bar/"
    (path-namestring "/foo/bar/baz.cl") RETURNS "/foo/bar/"

    ;; On Windows:

    (path-pathname "d:/foo/bar/baz.cl") RETURNS #p"d:\\foo\\bar\\"
    (path-namestring "d:/foo/bar/baz.cl") RETURNS "d:\\foo\\bar\\"
    (path-pathname "//hobart/c/tmp/foo.cl") RETURNS #p"\\\\hobart\\c\\tmp\\"
    (path-namestring "//hobart/c/tmp/foo.cl") RETURNS "\\\\hobart\\c\\tmp\\"

See pathnames.htm.

Copyright (c) 1998-2019, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 8.2 page.
Created 2012.5.30.

|  | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 version