# walkdir

> Walk a directory tree recursively in Rust, efficiently and on every platform

Source: https://talira.ai/catalog/walkdir-m96d9cgg
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / filesystem](https://talira.ai/categories/libraries/filesystem), [languages / rust](https://talira.ai/categories/languages/rust)
- Licence: Unlicense OR MIT[^1][^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Andrew Gallant](https://talira.ai/orgs/andrew-gallant.md)

walkdir is a cross-platform Rust library by Andrew Gallant for walking a directory recursively. It can follow symbolic links, limits how many file descriptors it keeps open, and prunes the tree efficiently with filter_entry, so a walk can skip hidden directories or whole subtrees without descending into them. Its author reports performance comparable to find and glibc's nftw on warm and cold caches, with as few system calls and allocations as it can manage. It is dual-licensed under MIT or the Unlicense.

## Links

- GitHub: https://github.com/BurntSushi/walkdir
- Docs: https://docs.rs/walkdir/

## Problems it solves

- list every file under a directory in my Rust program
- walk a directory tree in Rust while skipping hidden folders
- recursively scan a large folder in Rust without running out of file descriptors

## Features

- Recursive directory iteration on Linux, macOS and Windows
- Optionally follows symbolic links
- Caps the number of open file descriptors
- filter_entry prunes subtrees without descending into them
- Performance comparable to find and nftw

## Trust

Overall: 0.49 out of 1.
Signals: maintenance 0.62, adoption 0.64, momentum 0.33, community 0.65, backing 0.30, extensibility 0.00.

- last commit 9 days ago
- 3 commits in the last 90 days
- 1.6k GitHub stars
- 42 contributors
- accepts sponsorship (Github)
- backed by Andrew Gallant

## Alternatives

- [glob](https://talira.ai/catalog/glob-rj61n4pn.md): Match file paths against Unix shell style patterns in Rust
- [tempfile](https://talira.ai/catalog/tempfile-w5nny0mw.md): Secure, cross-platform temporary files and directories for Rust
- [Notify (Rust)](https://talira.ai/catalog/notify-rust-0dr89m9t.md): Cross-platform filesystem notification library for Rust

## Sources

[^1]: https://github.com/BurntSushi/walkdir/blob/master/README.md (checked 28 Nov 2026)
[^2]: https://github.com/BurntSushi/walkdir/blob/master/Cargo.toml (checked 28 Nov 2026)
