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
The binary will be installed to
$HOME/.cargo/bin
; make sure this directory is in yourPATH
. You can also findmytree
on 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.