Info
This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Folderwalk - folder walking tool
Folderwalk is a simple folder-walking tool written in Rust. It recursively scans a directory and outputs its structure—optionally including file contents. Designed for fast inspection or generating context for AI systems (e.g. MCP agents, file-aware editors).
Install via Cargo:
cargo install folderwalk
files.txt
Creates a files.txt
file in the target folder containing the directory tree.
folderwalk <path/to/folder>
Example:
folderwalk ./project
files.txt
Adds file contents inline beneath each file entry.
folderwalk <path/to/folder> -c
Example:
folderwalk ./project -c
stdout
instead of files.txt
Prints the folder structure directly to the terminal.
folderwalk <path/to/folder> -o
Example:
folderwalk ./project -o
stdout
Combines -o
and -c
to print everything to the terminal.
folderwalk <path/to/folder> -o -c
Example:
folderwalk ./project -o -c
Use --max-depth N
to restrict how deep the traversal goes.
folderwalk ./project --max-depth 2
Use --ascii
to switch from Unicode to ASCII characters.
folderwalk ./project --ascii
files.txt
is created in the target folder unless -o
is used.node_modules
, .git
, and target
are excluded.Feedback is welcome. If you have ideas for features or improvements, feel free to open an issue or PR on GitHub.
1 post - 1 participant
🏷️ Rust_feed