Sign in Join
FPDoc Onlineexperiment

FileIsReadOnlyUTF8 function

In unit LazFileUtils

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

Declaration

pascal
function FileIsReadOnlyUTF8(const FileName: string): Boolean

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.

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.