listDirectory - multiple declarations

Function listDirectory

List directory content

std.file.DirEntry[] listDirectory(
  in const(string) dir,
  AttrFilter attrFilter = AttrFilter.all,
  in const(string[]) filters = []
);

Optionally filters file names by filter (not applied to directories).

Returns true if directory exists and listed successfully, false otherwise.

Throws

Exception if dir is not directory or some error occured during directory listing.

Function listDirectory

List directory content

deprecated bool listDirectory(
  in const(string) dir,
  in const(bool) includeDirs,
  in const(bool) includeFiles,
  in const(bool) showHiddenFiles,
  in const(string[]) filters,
  ref std.file.DirEntry[] entries,
  in const(bool) showExecutables = false
);

Optionally filters file names by filter (not applied to directories).

Result will be placed into entries array.

Returns true if directory exists and listed successfully, false otherwise.