Sign in Join
FPDoc Onlineexperiment

TFileSearcher.OnQueryDirectoryEnter property

Member of TFileSearcherpublicIn unit FileUtil

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

Declaration

pascal
property 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.

See also

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.