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
Built Distribution
File details
Details for the file scandir-1.2.zip
.
File metadata
- Download URL: scandir-1.2.zip
- Upload date:
- Size: 28.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a9bb1ed2510399c5d13882253c0b938b3d35939d5216521fc443ef8b5dfa809 |
|
MD5 | b3bec12112560fca0a27c56a70a119ba |
|
BLAKE2b-256 | 87cc58734a67eb9d46a6f8580ef27b793329145a4f016929acf83ec864d177b6 |
File details
Details for the file scandir-1.2.tar.gz
.
File metadata
- Download URL: scandir-1.2.tar.gz
- Upload date:
- Size: 25.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e31c0ce9a21cbb4f3fe838fedd7072bdd0b233d80203eafe46872a02f985c1ce |
|
MD5 | 3a317b482128e072f6cfb3bb2ce52e06 |
|
BLAKE2b-256 | 8d3d983ace1ff2e0dd20a9e1f58b63984b0058a63bf8435cadddc036be098404 |
File details
Details for the file scandir-1.2.win-amd64-py2.7.exe
.
File metadata
- Download URL: scandir-1.2.win-amd64-py2.7.exe
- Upload date:
- Size: 240.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5b7cc400cf90abe039b238c723f0518fc53e4ddfc62f9f3380485a7d0583806 |
|
MD5 | 896625409dc758be28ce52e27abeeb27 |
|
BLAKE2b-256 | 8deba8a5477068f6012f5a0cf29462aac395ba1eec3ed02ef12a82f5e7d8b1a8 |