Sign in Join
FPDoc Onlineexperiment

TListFileSearcher class

In unit FileUtil

Stores file names matching a search criteria in a TStrings class instance.

Declaration

pascal
TListFileSearcher = class(TFileSearcher)

Inheritance

  1. TListFileSearcher
  2. TFileSearcher
  3. TFileIterator

Description

TListFileSearcher is a TFileSearcher descendant used to used store file names matching a specified search criteria in a TStrings class instance. It provides an overridden methods used to add file names to the string list when a matching file name is found. An alternate constructor is provided to specify the TStrings instance used to store the file names found in the Search method.

Resources allocated to the TStrings instance must be freed by the caller. TListFileSearcher does not own or manage the resources for the TStrings instance.

See also

Methods

DoFileFoundprotectedPerforms actions required to add a file name to the list of matches for the file searcher.
CreatepublicConstructor for the class instance.

Inherited

From TFileSearcher (16)

CircularLinkdetection DirectoryAttribute DoDirectoryEnter DoDirectoryFound DoQueryDirectoryEnter DoQueryFileFound FileAttribute FollowSymLink MaskSeparator OnDirectoryEnter OnDirectoryFound OnFileFound OnQueryDirectoryEnter OnQueryFileFound PathSeparator Search

From TFileIterator (7)

FileInfo FileName IsDirectory Level Path Searching Stop

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