Sign in Join
FPDoc Onlineexperiment

TFileAttr enumeration

In unit FileCtrl

Enumerated type with file and directory attributes used in TFileListBox.

Declaration

pascal
TFileAttr = (ftReadOnly,ftHidden,ftSystem,ftVolumeID,ftDirectory,
 ftArchive,ftNormal)

Description

TFileAttr is an enumerated type with values that represent file and directory attributes for a selection in TFileListBox. Values from TFileAttr are stored in the TFileType set, which is used to implement the FileType property in TFileListBox.

Values in TFileAttr generally correspond to the file attributes used in TSearchRec from the FreePascal RTL (Run-Time Library). The differences are:

ftNormal
This represents a file lacking any other file attributes; represented in TSearchRec with the Integer value 0 (zero).
fsAnyFile
This value from TSearchRec is not represented in TFileAttr; it is a search mask and not an actual file attribute.

See also

Values

ftReadOnlyFile is read-only.
ftHiddenFile is hidden. For UNIX-like environments, this means that the file name starts with a '.' ( Period) character.
ftSystemFile is a system file. For UNIX-like environments, this means that it is a character, block, or FIFO file.
ftVolumeIDDrive Volume label used on the Windows FAT (not FAT32) file system. Volume labels are not used on UNIX-like file systems.
ftDirectoryFile attribute for a directory entry.
ftArchiveFile is ready to be archived. Not used for UNIX-like file systems.
ftNormalFile has no other file attributes.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.