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

FileGetAttrUTF8

Gets the value of file attributes for the specified file name.

Declaration

Source position: lazfileutils.pas line 118

function FileGetAttrUTF8(

  const FileName: string

):LongInt;

Arguments

FileName

  

File name for the function.

Function result

File attribute value for the specified file name.

Description

FileGetAttrUTF8 is a Longint function used to get files attributes for the specified file name. For the Windows environment, GetFileAttributesW in Windows is called to the file attribute value for Filename. For UNIX-like environments, FileGetAttr in SysUtils is called to the the return value.

The return value contains a numeric value that can be OR-ed with the following constants to get a specific file attribute:

faReadOnly
The file is read-only
faHidden
The file is hidden (On UNIX, the file name starts with a dot)
faSysFile
The file is a system file (On UNIX, the file is a character, block or FIFO file).
faVolumeId
Volume Label (For DOS/Windows on a plain FAT - not VFAT or Fat32)
faDirectory
File is a directory
faArchive
File is ready to be archived (Not possible on UNIX)

Version 3.2 Generated 2024-02-25 Home