GetFolders

From SCAR Divi Manual
Revision as of 03:39, 2 February 2013 by Freddy (talk | contribs)
Jump to: navigation, search

Definition

function GetFolders(constPath: string): TStrArray;

Availability

SCAR Divi 3.20 > Current

Notes

  • Did not work 100% correctly until 3.39

Description

This function generates a list of all subdirectories in a given directory specified by Path and returns it as a TStrArray. This function is not recursive and only returns the name of the folders without trailing path delimiter. The directory paths '.' and '..' are always amongst the results.

Example

var
  sa: TStrArray;
  i: Integer;

begin
  sa := GetFolders(IncludesPath);
  for i := Low(sa) to High(sa) do
    WriteLn(sa[i]);
end.

See Also