Sign in Join
FPDoc Onlineexperiment

FileIsWritable function

In unit LazFileUtils

Indicates if the specified file name is writable.

Declaration

pascal
function FileIsWritable(const AFilename: string): Boolean

Description

FileIsWritable is a Boolean function which indicates if the specified file name is writable. For UNIX-like environments, FpAccess is used to get the return value. For Windows, FileGetAttrUTF8 is used to determine if faReadOnly is omitted from the attributes for the file.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.