Tests for the presence of a directory.
lispworks
file-directory-p pathname => bool
| pathname⇩ | 
A pathname, string, or file-stream. | 
| bool | 
A boolean. | 
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.
CL-USER 70 > (file-directory-p "~") T CL-USER 71 > (file-directory-p ".login") NIL
LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:41