Unit 'fpmkunit' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#fcl]

SearchFiles

Searches for files in specified paths

Declaration

Source position: fpmkunit.pp line 1705

procedure SearchFiles(

  AFileName: string;

  ASearchPathPrefix: string;

  Recursive: Boolean;

  var List: TStrings

);

Arguments

AFileName

  

Filename pattern to search for

ASearchPathPrefix

  

Search path prefix

Recursive

  

Whether to search recursively

List

  

List to store found files

Description

SearchFiles searches for files matching a filename pattern within specified search paths. This procedure supports recursive directory traversal and wildcard pattern matching for file discovery.

The procedure populates a provided list with all matching files found during the search, enabling file location and collection for build operations.


Documentation generated on: Dec 15 2025