All Manuals > LispWorks User Guide and Reference Manual > 38 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

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.

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

LispWorks User Guide and Reference Manual - 13 Feb 2015

NextPrevUpTopContentsIndex