Crate scandir

Source
Expand description

scandir is a directory iteration module like walk, but with more features and higher speed. Depending on the function call it yields a list of paths, tuple of lists grouped by their entry type or DirEntry objects that include file type and stat information along with the name.

If you are just interested in directory statistics you can use the Count.

scandir contains following classes:

  • Count for determining statistics of a directory.
  • Walk for getting names of directory entries.
  • Scandir for getting detailed stats of directory entries.

Re-exports§

Modules§