scandir, a better directory iterator and faster os.walk()
Project description
scandir() is a generator version of os.listdir() that returns an iterator over files in a directory, and also exposes the extra information most OSes provide while iterating files in a directory (such as type and stat information).
This module also includes a version of os.walk() that uses scandir() to speed it up significantly.
NOTE: If you’re using Python version 3.5+, os.scandir() and the speed improvements to os.walk() are already available in the standard library.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
scandir-1.2.zip
(28.3 kB
view hashes)
scandir-1.2.tar.gz
(25.2 kB
view hashes)
Built Distribution
scandir-1.2.win-amd64-py2.7.exe
(240.8 kB
view hashes)