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:
Countfor determining statistics of a directory.Walkfor getting names of directory entries.Scandirfor getting detailed stats of directory entries.