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

TFileSearcher.OnDirectoryEnter

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

Declaration

Source position: fileutil.pas line 154

public property TFileSearcher.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

TFileSearcher.Search

  

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

TFileSearcher.DirectoryAttribute

  

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

TFileSearcher.OnDirectoryFound

  

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

TFileSearcher.OnFileFound

  

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

TFileIterator

  

Implements an iterator for file and directory names on the local file system.

TFileIterator.Path

  

Contains the path to the current file or directory in the iterator.

TFileIterator.FileInfo

  

Contains file information for the current entry in the iterator.

TFileIterator.Level

  

Gets the current directory level relative to the base search path.

TDirectoryEnterEvent

  

Specifies an event handler signalled when a new directory is processed with the specified iterator.


Version 3.2 Generated 2024-02-25 Home