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

NextPrevUpTopContentsIndex

delete-directory

Function
Summary

Deletes a directory.

Package

lispworks

Signature

delete-directory directory &optional error => result

Arguments

directory

A pathname designator.

error

nil, :error or :no-error.

Value

result

t or nil.

Description

The function delete-directory attempts to delete the directory directory. It returns t on success, and on failure either returns nil or signals an error.

error determines what happens when delete-directory fails. When error is nil (the default), if directory does not exist delete-directory returns nil, otherwise any failure causes an error to be signaled. If error is :no-error, delete-directory returns nil on any failure. If error is :error, any failure causes an error to be signaled.

Typical reasons for failures in delete-directory are that directory is not empty, or that the user does not have the right permissions.


LispWorks User Guide and Reference Manual - 13 Feb 2015

NextPrevUpTopContentsIndex