7 releases
| 0.2.0 | Jul 14, 2025 |
|---|---|
| 0.1.5 | Jul 6, 2025 |
| 0.1.3 | May 27, 2025 |
#8 in #tree-cli
490 downloads per month
23KB
612 lines
mytree
mytree is a small Rust CLI that prints a directory tree to the terminal.
The output can be filtered (by extension or regex), include hidden items, show long-format metadata, be streamed through a pager, written to a file (optionally gzip-compressed), or emitted as machine-readable JSON.
Installation
# needs Rust ≥1.70
cargo install mytree # grabs the latest release from crates.io
The binary will be installed to
$HOME/.cargo/bin; make sure this directory is in yourPATH. You can also findmytreeon crates.io.
Features
- Printing directories and files in alphabetical order [x] / tested
- Filtering results by file extension [x] / tested
- Filtering results by regex [x] / tested
- Filtering results by hidden-items [x] / tested
- Toggle long-format meta-data [x] / tested
- Sort results by file-size [x] / tested
- Sort results by last_updated_time [x] / tested
- Write results as JSON to a file [x] / tested
Please send feature requests! I would love to hear what would make mytree even more useful.
Dependencies
~6–22MB
~276K SLoC