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.3.zip (28.6 kB view details)

Uploaded Source

scandir-1.3.tar.gz (25.3 kB view details)

Uploaded Source

File details

Details for the file scandir-1.3.zip.

File metadata

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

File hashes

Hashes for scandir-1.3.zip
Algorithm Hash digest
SHA256 46cbaa8bad687481cbe8dc9e959e4fd84017899d51c777bf10b94aac486a1668
MD5 7f274eaeaa92704f51f2042f2fbe335b
BLAKE2b-256 19a5cd03025d882acedf2d7d3b92e108a147463ed71346e215b1ee7850a1a1cf

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for scandir-1.3.tar.gz
Algorithm Hash digest
SHA256 b57987392228376a6782ec26aeb5cae7878c7d426e85af85753b7c5ee6e14012
MD5 e7a59e446dad6a1abdbed3c236f12871
BLAKE2b-256 b173493f392cd7e1549361e7727f75dea1c9f3a627350973018857578c8c5598

See more details on using hashes here.

Provenance

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