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

TFileSearcher.OnQueryDirectoryEnter

Event handler signalled to accept or reject a subdirectory in the Search method.

Declaration

Source position: fileutil.pas line 166

public property TFileSearcher.OnQueryDirectoryEnter : TQueryDirectoryFoundEvent
  read FOnQueryDirectoryEnter
  write FOnQueryDirectoryEnter;

Description

OnQueryDirectoryEnter is a TQueryDirectoryFoundEvent property signalled when a recursive directory search is performed in the Search method. It allows an application to accept or reject a directory name on a case-by-case basis even though it matches the path and mask provided to Search.

Arguments passed to the event handler include information about the current file system entry, the name for the directory, and a variable argument which indicates whether the directory is accepted or rejected. See TQueryDirectoryFoundEvent for more information.

OnQueryDirectoryEnter is signalled (when assigned) from the Search method, and occurs when subdirectory searches have been enabled in the method.

Use OnQueryFileFound to accept or reject individual file names processed in the Search method.

Version info

Added in LCL version 4.0.

See also

TFileSearcher.Search

  

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

TFileSearcher.OnQueryFileFound

  

Event handler signalled to accept or reject a file name found using the class.

TQueryDirectoryFoundEvent

  

Specifies an event handler signalled when a directory name matching a search criteria is found in TFileSearcher.


Version 4.0 Generated 2025-05-03 Home