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

TFileSearcher.DoQueryDirectoryEnter

Performs actions needed to accept or reject a directory name processed in the Search method.

Declaration

Source position: fileutil.pas line 150

protected procedure TFileSearcher.DoQueryDirectoryEnter(

  const Dir: string;

  var Accept: Boolean

);

Arguments

Dir

  

Directory name passed to the OnQueryDirectoryFound event handler.

Accept

  

Returns True if the specified directory can be used. Returns False if the specified directory should be omitted.

Description

DoQueryDirectoryEnter signals the OnQueryDirectoryEnter event handler (when assigned) to allow the application to decide if the Dir argument contains a directory name which can be used in the class. An application must implement and assign a handler routine to OnQueryDirectoryEnter to respond to the notification.

OnQueryDirectoryEnter is called during execution of the Search method when a directory name is detected and accepted using the search path and search mask passed to the method. Set Accept to True if the directory name can be used in the class to signal the OnDirectoryEnter event handler.

See also

TFileSearcher.OnQueryDirectoryEnter

  

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

TFileSearcher.OnDirectoryEnter

  

Event handler signalled when a new directory is processed in the Search method.

TFileSearcher.OnQueryFileFound

  

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

TFileSearcher.OnFileFound

  

Event handler signalled when a file matching the file mask is found in the Search method.

TFileSearcher.FileAttribute

  

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

TFileSearcher.DirectoryAttribute

  

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

TFileSearcher.FollowSymLink

  

Indicates if a search process directory paths that are symbolic links.

TFileSearcher.PathSeparator

  

Character used as a delimiter between directory paths.

TFileSearcher.MaskSeparator

  

Character used as a delimiter between file masks.

TFileIterator.Stop

  

Stops the search process.


Version 4.0 Generated 2025-05-03 Home