[Overview][Types][Procedures and functions] | Reference for unit 'dirutils' (#powtils_main) |
Source position: line 0
procedure GetSubDirs( |
Dir: String; |
const wildcard: String; |
var result: TDirNames |
); overload; |
Dir: String; |
var result: TDirNames |
); overload; |
Matching a wildcard pattern such as *.* is optional in the overloaded function. The wildcard syntax is the same as the FindFile wildcards in the sysutils unit.
This function does not return '.' dot or '..' dot dot listings, nor does it return files.
var got: TDirNames; i: integer; begin GetSubDirs('somepath/', got); for i:= low(got.dirs) to got.count-1 do writeln(got.dirs{i}); end.