listDirectory

List directory content

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

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

  1. DirEntry[] listDirectory(string dir, AttrFilter attrFilter, string[] filters)
    DirEntry[]
    listDirectory
    (
    in string dir
    ,,
    in string[] filters = []
    )
  2. bool listDirectory(string dir, bool includeDirs, bool includeFiles, bool showHiddenFiles, string[] filters, DirEntry[] entries, bool showExecutables)

Throws

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

Meta