Tests whether a file is writable.
hcl
file-writable-p file => result
file⇩ |
A pathname, string or file-stream, designating a file. |
result | t or nil . |
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.
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