#r-tree #directory #version #tool #depth #show #hidden

app rust-rtree

A simplified version of the tree tool written in rust

2 releases

0.9.6 Nov 11, 2024
0.9.5 Nov 11, 2024

#306 in Filesystem

Download history 219/week @ 2024-11-08 36/week @ 2024-11-15 7/week @ 2024-11-22 2/week @ 2024-11-29 3/week @ 2024-12-06

62 downloads per month

MIT license

15KB
316 lines

rtree

一个用Rust编写的tree工具的简易版本

使用方法:

Usage: rtree [OPTION] [DIRECTORY]
       rtree [DIRECTORY] [OPTION]

Options:
-h, --help                     Print this help message
[DIRECTORY]                    The directory to list (default: current directory)
--depth DEPTH, -L DEPTH        Set the maximum depth of the tree (default: 0)
--all, -a                      Show hidden files and directories
-d, --directory                List directories only
--fileonly                     List files only
-V, --version                  Print the version of rtree

编译:

make build 

注意MODE=debug可作为调试,但是占用空间较大

请使用MODE=release用于安装

测试(测试用例现在还没写):

make test
# TODO:

安装(将安装到 /usr/local/bin 目录下):

make install MODE=release

Dependencies

~0.1–6MB
~34K SLoC