[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 190

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 sub-directories in the search.

PathSeparator

  

Delimiter used to separate 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 sub-directories in the search.

PathSeparator

  

Delimiter used to separate 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.