[Overview][Types][Procedures and functions] | Reference for unit 'dirutils' (#powtils_main) |
Source position: line 0
procedure GetFiles( |
Dir: String; |
const wildcard: String; |
var result: TFileNames |
); overload; |
Dir: String; |
var result: TFileNames |
); 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.
var got: TFileNames; i: integer; begin GetFiles('somepath/', got); for i:= low(got.files) to got.count-1 do writeln(got.files{i}); end.