[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 54

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.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.