mytree

Crates.iomytree
lib.rsmytree
version0.2.0
created_at2025-05-27 15:54:07.593282+00
updated_at2025-07-14 16:52:56.418372+00
descriptionA fast CLI tool to visualize directory structures with filtering and formatting
homepagehttps://github.com/yokurang/mytree
repositoryhttps://github.com/yokurang/mytree
max_upload_size
id1691281
size57,662
Alan Matthew (yokurang)

documentation

https://docs.rs/mytree

README

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 your PATH. You can also find mytree on crates.io.

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.


Commit count: 22

cargo fmt