#tree #directory #cross-platform #level #command #line #filter

app tree-rs

tree-rs is a cross platform reimplementation of the linux *tree* command. It supports colored output and specifying the number of directory levels it should search

13 releases

Uses old Rust 2015

0.6.5 May 28, 2018
0.6.4 Jul 5, 2017
0.6.3 Jun 1, 2017
0.5.0 Jan 30, 2017

#125 in #level

MIT license

17KB
466 lines

Crates.io

Tree-rs

Tree-rs tries to create a cross-platform alternative to the unix tree command. The goal is to be compatible with its command line arguments.

tree-rs has been tested on Linux and Windows 7.

Example output

.
├── Cargo.lock
├── Cargo.toml
├── README.md
├── src
│   ├── filter.rs
│   ├── main.rs
│   └── pathiterator.rs
└── timer.py

1 directories, 7 files

Installation

From crates.io

cargo install tree-rs

From github

git clone https://github.com/sighol/tree-rs
cd tree-rs
cargo install

Performance

On linux it is a bit faster than the tree command. Based on a simple benchmark (see timer.py), it is about 10% faster.

Dependencies

~4.5–7MB
~114K SLoC