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.4.zip (34.3 kB view details)

Uploaded Source

scandir-1.4.tar.gz (28.8 kB view details)

Uploaded Source

File details

Details for the file scandir-1.4.zip.

File metadata

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

File hashes

Hashes for scandir-1.4.zip
Algorithm Hash digest
SHA256 aa4705b089660d419ecea91f3f38f704fdb46006a6ecb53732a224c24ec4dab3
MD5 fec8cf24c2fef2b1f6e43f27cf8a1146
BLAKE2b-256 163dafa548d8488589d6b24b76a6006ce13b3df2651fd2aac355203faa8ec6af

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for scandir-1.4.tar.gz
Algorithm Hash digest
SHA256 ada8d3ddc82fd168b3f46feb393d37c722ed0553a10a3ce5426ddc5ec17d597a
MD5 bdac33e1548a18598da6c141c84af407
BLAKE2b-256 9540ddbcd295ee58d5c1126645890bcf87853e4075547308884e4f8ada27f195

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 Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page