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

FindAllFiles

Returns the list of found files in the specified path according to passed options.

Declaration

Source position: fileutil.pas line 181

function FindAllFiles(

  const SearchPath: string;

  SearchMask: string = '';

  SearchSubDirs: Boolean = True;

  DirAttr: Word = faDirectory

):TStringList; overload;

procedure FindAllFiles(

  AList: TStrings;

  const SearchPath: string;

  SearchMask: string = '';

  SearchSubDirs: Boolean = True;

  DirAttr: Word = faDirectory

); overload;

Arguments

SearchPath

  

Base path for searching files.

SearchMask

  

A list of masks, separated by a semicolon (;) to which found files should match.

SearchSubDirs

  

If search recursively sub directories.

Function result

List (TStringList) of found files. The StringList is instantiated by the FindAllFiles function, so you should not instatiate it before calling the function.

Arguments

SearchPath

  

Base path for searching files.

SearchMask

  

A list of masks, separated by a semicolon (;) to which found files should match.

SearchSubDirs

  

If search recursively sub directories.

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