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

FindAllDirectories

Stores directory names matching the search criteria in a TStringList class instance.

Declaration

Source position: fileutil.pas line 186

function FindAllDirectories(

  const SearchPath: string;

  SearchSubDirs: Boolean = True;

  PathSeparator: Char = ';'

):TStringList; overload;

procedure FindAllDirectories(

  AList: TStrings;

  const SearchPath: string;

  SearchSubDirs: Boolean = True;

  PathSeparator: Char = ';'

); overload;

Arguments

SearchPath

  

Path(s) to the directories examined in the routine.

SearchSubDirs

  

True to recurse into subdirectories in the search.

PathSeparator

  

Delimiter used between path names in the SearchPath parameter.

Function result

Stores directory names matching the search criteria.

Arguments

AList

  

Stores directory names matching the search criteria.

SearchPath

  

Path(s) to the directories examined in the routine.

SearchSubDirs

  

True to recurse into subdirectories in the search.

PathSeparator

  

Delimiter used between path names in the SearchPath parameter.

Description

FindAllDirectories is an overloaded routine used to store directory path names that match the specified search criteria in a TStringList class instance. The procedure variant uses an existing TStringList class instance to store the matching directory names. The function variant allocates a TStringList class instance used to capture the matching directory names.

See also

TListDirectoriesSearcher

  

Stores directory names matching a given search criteria in a TStrings class instance.


Version 3.2 Generated 2024-02-25 Home