TFileSearcher.OnDirectoryEnter property
Event handler signalled when a new directory is processed in the Search method.
Declaration
property OnDirectoryEnter: TDirectoryEnterEvent read FOnDirectoryEnter write FOnDirectoryEnter;Description
OnDirectoryEnter is a
TDirectoryEnterEvent property
with the event handler signalled when a new directory is processed in the
Search method. It is signalled after the new directory name has
been stored in Path, FileInfo, and Level in the file iterator. It occurs
immediately before the search in the directory path is performed.
An application must implement and assign an object procedure to the handler
to respond to the event notification. The FileIterator argument is
the TFileIterator instance for the event notification, and allows
access to its properties and methods. Call the Stop method in
FileIterator to stop the search process.
Use OnDirectoryFound to respond to directory names found in the
Search method.
Use OnFileFound to respond to a new file name processed as a match
in the Search method.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
