Next Prev Up Top Contents Index

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 Reference Manual (Windows version) - 14 Dec 2001

Next Prev Up Top Contents Index