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

FileIsReadOnlyUTF8

Determines if the specified file is marked as read-only.

Declaration

Source position: lazfileutils.pas line 123

function FileIsReadOnlyUTF8(

  const FileName: string

):Boolean;

Arguments

FileName

  

File name to examine in the function.

Function result

True when the file is marked as read-only.

Description

FileIsReadOnlyUTF8 is a Boolean function used to determine if the specified file is marked as read-only in the local file system. FileIsReadOnlyUTF8 calls FileGetAttrUTF8 for the specified file name and checks to see if faReadOnly has been included in the file attributes value. The return value is True when faReadOnly has been included in the file attributes.


Version 3.2 Generated 2024-02-25 Home