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

# TFileSearcher

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Class for searching files.

## Declaration

Source position: fileutil.pas line 149

`type TFileSearcher = class(TFileIterator)`
`protected`
`procedure DoDirectoryEnter; virtual;` |  |
`procedure DoDirectoryFound; virtual;` |  |
`procedure DoFileFound; virtual;` |  |
`public`
`constructor Create;` |  | Creates new file searcher object.
`procedure Search();` |  | Searches for files in specified path with passed options.
`property OnDirectoryFound: TDirectoryFoundEvent; [rw]` |  | Is invoked when directory is found.
`property OnFileFound: TFileFoundEvent; [rw]` |  | Is invoked when file is found.
`end;`

## Inheritance

`TFileSearcher` |  | Class for searching files.
`TFileIterator` |  | Class for getting info about found file or directory.
`TObject`

The latest version of this document can be found at lazarus-ccr.sourceforge.net.