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

TFileSearcher.FileAttribute

File attribute needed for any file considered a match in the Search method.

Declaration

Source position: fileutil.pas line 150

public property TFileSearcher.FileAttribute : Word
  read FFileAttribute
  write FFileAttribute
  default faAnyfile;

Description

FileAttribute is a Word property. The default value for the property is faAnyfile, and means that any of the file attribute constants are allowed for files.

FileAttribute is used in the Search method to determine whether a file in a given search path can be considered a match based on its file attributes. The value is passed as an argument to FindFirstUTF8 and FindNextUTF8. The value is compared to the file attributes returned in a TSearchRec instance from those routines.

Use DirectoryAttribute to specify the file attributes needed for directories processed in the Search method.

See also

TFileSearcher.Search

  

Searches for files or directories in the specified path(s) using the specified options.

TFileSearcher.DirectoryAttribute

  

File attribute needed for directories considered a match in the Search method.

TFileIterator.FileInfo

  

Contains file information for the current entry in the iterator.

FindFirstUTF8

  

Starts searching for files matching the specified path value.

FindNextUTF8

  

Locates another file matching the search criteria.

TSearchRec


Version 3.2 Generated 2024-02-25 Home