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]
- Filtering results by file extension [x]
- Filtering results by regex [x]
- Filtering results by hidden-items [x]
- Toggle long-format meta-data [x]
- Sort results by file-size [x]
- Sort results by last_updated_time [x]
- Write results as JSON to a file [x]
Please send feature requests! I would love to hear what would make mytree even more useful.