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

TFileSearcher.DirectoryAttribute

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

Declaration

Source position: fileutil.pas line 151

public property TFileSearcher.DirectoryAttribute : Word
  read FDirectoryAttribute
  write FDirectoryAttribute
  default faDirectory;

Description

DirectoryAttribute is a Word property with the file attribute needed for directories considered a match in the Search method. The default value for the property is faDirectory.

DirectoryAttribute is used in the Search method to determine whether a file system entry 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 FollowSymLink to include or exclude directories which are symbolic links on the local file system.

Use FileAttribute to set the file attributes needed for files considered a match in the Search method.

See also

TFileSearcher.Search

  

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

TFileSearcher.FileAttribute

  

File attribute needed for any file 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