# mytree
[`mytree`](https://crates.io/crates/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
```bash
# 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 your `PATH`.
> You can also find `mytree` on [crates.io](https://crates.io/crates/mytree).
## Features
1. Printing directories and files in alphabetical order [x] / tested
2. Filtering results by file extension [x] / tested
3. Filtering results by regex [x] / tested
4. Filtering results by hidden-items [x] / tested
5. Toggle long-format meta-data [x] / tested
6. Sort results by file-size [x] / tested
7. Sort results by last_updated_time [x] / tested
8. 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.
---