[Overview][Constants][Types][Procedures and functions][Variables][Index] Reference for unit 'LazFileUtils' (#lazutils)

FileIsWritable

Indicates if the specified file name is writable.

Declaration

Source position: lazfileutils.pas line 55

function FileIsWritable(

  const AFilename: string

):Boolean;

Arguments

AFilename

  

File name to examine.

Function result

True when the specified file name is writable.

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.