All Manuals > LispWorks® User Guide and Reference Manual > 37 The HCL Package

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

The function file-writable-p checks whether 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.

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

LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:35