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 details)

Uploaded Source

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

Uploaded Source

Built Distribution

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

Uploaded Source

File details

Details for the file scandir-1.0.zip.

File metadata

  • Download URL: scandir-1.0.zip
  • Upload date:
  • Size: 26.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for scandir-1.0.zip
Algorithm Hash digest
SHA256 24153e3f20f073f051ba07f1b733e683430ba6485a163f49efab5e0928737e88
MD5 4e44ef1c79fac0ca11721f72d6df1a60
BLAKE2b-256 d80c149d490018ec0132e470613ef0bd4340d3d610d97a04d468660e2669c718

See more details on using hashes here.

File details

Details for the file scandir-1.0.tar.gz.

File metadata

  • Download URL: scandir-1.0.tar.gz
  • Upload date:
  • Size: 24.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for scandir-1.0.tar.gz
Algorithm Hash digest
SHA256 e3757b6872e6ab57844605eff3f1cbbf6e08a4acf5c17e7794ef715f04a4f4d4
MD5 0dde467c89434d11341b7502c31768ed
BLAKE2b-256 9c9a6c60c4e1afb37f8e32c40eb95d036109b4e61aea60374f7f176f907efaad

See more details on using hashes here.

File details

Details for the file scandir-1.0.win-amd64-py2.7.exe.

File metadata

File hashes

Hashes for scandir-1.0.win-amd64-py2.7.exe
Algorithm Hash digest
SHA256 cbc94bd18fd69ae05770e0bd55d2e4170985da99dd80fc1eb961ab09e9301ead
MD5 ee4caadc93e4c37d8f5a8a3adaa8aaf0
BLAKE2b-256 d5bd75ce0af85b5b7062bfadc4d2f1b968f6d991ad56608af0a684761f9e074e

See more details on using hashes here.

Supported by

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