Next Previous Up Top Contents Index

12 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

Ift, the pathname represented by pathname exists and is a directory. Ifnil, it either does not exist, or it is not a directory.

Description

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

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

LispWorks Reference Manual - 15 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker