| Crates.io | folderwalk |
| lib.rs | folderwalk |
| version | 0.1.0 |
| created_at | 2025-09-01 11:22:37.940492+00 |
| updated_at | 2025-09-01 11:22:37.940492+00 |
| description | Folder walking tool |
| homepage | https://github.com/pjdur/folderwalk |
| repository | https://github.com/Pjdur/folderwalk |
| max_upload_size | |
| id | 1819444 |
| size | 15,058 |
folderwalk is a lightweight folder-walking tool written in Rust. It recursively scans a directory and outputs its structure—optionally including file contents. Designed for fast context generation, especially useful in AI workflows like MCP agents or file-aware editing systems.
files.txt or directly to stdoutInstall via Cargo:
cargo install folderwalk
files.txt):folderwalk <path/to/folder>
folderwalk <path/to/folder> -c
files.txt:folderwalk <path/to/folder> -o
folderwalk <path/to/folder> -c -o --max-depth 3 --ascii
| Flag | Description |
|---|---|
--content, -c |
Include file contents in output |
--stdout, -o |
Print output to stdout instead of files.txt |
--max-depth N |
Limit recursion to N levels |
--ascii |
Use ASCII tree characters instead of Unicode |
--help, -h |
Show usage instructions |
files.txt in the target directory.-o: Prints to stdout instead of writing a file.node_modules, .git, and target.folderwalk ./my_project -c -o --max-depth 2
Outputs a tree of ./my_project with file contents, limited to 2 levels deep, printed to stdout.
Made with 🦀 Rust and a dash of pragmatism.