TFileAttr enumeration
Enumerated type with file and directory attributes used in TFileListBox.
Declaration
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
ftReadOnly | File is read-only. |
ftHidden | File is hidden. For UNIX-like environments, this means that the file name starts with a '.' ( Period) character. |
ftSystem | File is a system file. For UNIX-like environments, this means that it is a character, block, or FIFO file. |
ftVolumeID | Drive Volume label used on the Windows FAT (not FAT32) file system. Volume labels are not used on UNIX-like file systems. |
ftDirectory | File attribute for a directory entry. |
ftArchive | File is ready to be archived. Not used for UNIX-like file systems. |
ftNormal | File has no other file attributes. |
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
