Skip to main content

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


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.0.zip (26.9 kB view hashes)

Uploaded Source

scandir-1.0.tar.gz (24.2 kB view hashes)

Uploaded Source

Built Distribution

scandir-1.0.win-amd64-py2.7.exe (240.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page