All Manuals > LispWorks® User Guide and Reference Manual > 38 The LISPWORKS Package

file-directory-p Function

Summary

Tests for the presence of a directory.

Package

lispworks

Signature

file-directory-p pathname => bool

Arguments
pathname
A pathname, string, or file-stream.
Values
bool
A boolean.
Description

The function file-directory-p return t if the path specified by pathname is a directory that exists in the filesystem and returns nil if it either does not exist or it is not a directory.

Examples
CL-USER 70 > (file-directory-p "~")
T
 
CL-USER 71 > (file-directory-p ".login")
NIL
See also

file-link-p


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