scandir
scandir, a better directory iterator and faster os.walk()
scandir, a better directory iterator and faster os.walk()
To install this package, run one of the following:
scandir() is a directory iteration function like os.listdir(), except that instead of returning a list of bare filenames, it yields DirEntry objects that include file type and stat information along with the name. Using scandir() increases the speed of os.walk() by 2-20 times (depending on the platform and file system) by avoiding unnecessary calls to os.stat() in most cases.
Summary
scandir, a better directory iterator and faster os.walk()
Last Updated
Nov 19, 2019 at 13:31
License
BSD 3-Clause
Total Downloads
2
GitHub Repository
https://github.com/benhoyt/scandirDocumentation
https://docs.python.org/3.5/library/os.html#os.scandir