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.1.zip (27.7 kB view details)

Uploaded Source

scandir-1.1.tar.gz (24.7 kB view details)

Uploaded Source

Built Distribution

scandir-1.1.win-amd64-py2.7.exe (240.7 kB view details)

Uploaded Source

File details

Details for the file scandir-1.1.zip.

File metadata

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

File hashes

Hashes for scandir-1.1.zip
Algorithm Hash digest
SHA256 c2d73ef989def870a7f32af8dafa94c1f55064f711f02b9656979b6468ee532c
MD5 9804390d2b952f0345cea0aa5074af2c
BLAKE2b-256 f2f406c89d0d94a3205b81fb029b357226d7f33e990e5e0a5ebcd676e6006438

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for scandir-1.1.tar.gz
Algorithm Hash digest
SHA256 3a3be7a7ef07f59731a084832f231032fd87df6200e6a703695ac1832b190d28
MD5 6b6b777bcc119429e8f86bfe54be2635
BLAKE2b-256 79aa85018ce834b8b8437e1f1d4fac1cef51b8b529e3a45c76ad7c15295456fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for scandir-1.1.win-amd64-py2.7.exe
Algorithm Hash digest
SHA256 e83fe00d630756d0f15a969dceb2da04464a14d0c02842a1562a7c8f7c962e99
MD5 72b5c3a5ee7e1a213e65d5a2e10d4178
BLAKE2b-256 fb2b16c0db8c450ffc73518076c24f5a0e6bdaf3dc40dc9b50bbca6afdb32ec7

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