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

NextPrevUpTopContentsIndex

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

If t, the pathname represented by pathname exists and is a directory. If nil, it either does not exist, or it is not a directory.

Description

file-directory-p tests whether the pathname represents a directory.

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

LispWorks User Guide and Reference Manual - 13 Feb 2015

NextPrevUpTopContentsIndex