scandir-rs is a Rust-powered Python library that replaces os.walk() and os.scandir() with dramatically faster directory traversal — up to 13× faster on Linux and 70× faster on Windows. Version 2.9.9 adds Python 3.13/3.14 support, ARM64 macOS, Linux PPC64/S390, SSE builds for older CPUs, a follow_links argument, and changes skip_hidden to false by default. The library also provides richer metadata including hardlink detection, extended file type classification, error collection without interrupting traversal, and background async scanning.
Table of contents
Why scandir-rs?InstallationUsage ExamplesFaster os.walk()Faster os.scandir()Benchmark ResultsGet Started804 Impressions