LispWorks User Guide and Reference Manual > 32 The HCL Package

NextPrevUpTopContentsIndex

file-writable-p

Function
Summary

Tests whether a file is writable.

Package

hcl

Signature

file-writable-p file => result

Arguments

file

A pathname, string or file-stream, designating a file.

Values

result

t or nil

Description

Checks if file is writable. Note that this checks the properties of the file, so trying to write to the file may still fail if the file is non-writable for other reasons, for example if it is opened for writing by another program.

Example
CL-USER 44 > file-writable-p  (sys:lispworks-file "private-patches/load.lisp")
T

LispWorks User Guide and Reference Manual - 22 Dec 2009

NextPrevUpTopContentsIndex