help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Types][Procedures and functions] Reference for unit 'dirutils' (#powtils_main)

GetDirContent

Declaration

Source position: line 0

procedure GetDirContent(

  Dir: String;

  const wildcard: String;

  var result: TDirContents

); overload;

procedure GetDirContent(

  Dir: String;

  var result: TDirContents

); overload;

Notes

Returns all subfolders and files in TDirContents var parameter. You can access the count returned and the files/directories in the record.

Optionally, you can use a wildcard in the overloaded function.

Tips

This function returns dot '.' and dot dot '..' listings. If you want to skip these, use the GetDirContent_nodots function instead.





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505