2 stable releases
1.1.0 | Oct 14, 2024 |
---|---|
1.0.0 | Sep 29, 2024 |
0.1.0 |
|
#250 in Command line utilities
217 downloads per month
18KB
295 lines
ftree
ftree
is a simple command-line tool for visualizing directory structures. It creates a tree-like representation of the
file system that's easy to read and share.
Example Output
./
├── top level folder/
│ ├── MyTpye1.java
│ ├── MyType2.java
│ ├── nested folder 1/
│ │ └── filewithoutext
│ ├── nested folder empty/
│ └── nested folder 2/
│ ├── file1.txt
│ └── file2.txt
├── readme.md
└── meta.data
Installation
Using Cargo
You can install ftree
using Cargo:
cargo install e2o-ftree
For more information about the crate, visit https://crates.io/crates/e2o-ftree.
Pre-built Executables
Alternatively, you can download pre-built executables for various platforms from the GitHub releases page:
https://github.com/eum2o/ftree/releases
Usage
After installation, you can use the tool by running:
ftree [OPTIONS] [DIRECTORY]
Arguments:
[DIRECTORY]
: The directory to visualize. If not specified, defaults to the current directory.
Options:
--git
: Exclude git-related files and directories from the output.-h, --help
: Print help information.
Examples:
ftree
: Visualize the current directoryftree /home/user
: Visualize a specific directoryftree relative/path/to/folder
: Visualize a relative pathftree --git
: Visualize the current directory, excluding git-related filesftree --git /home/user
: Visualize a specific directory, excluding git-related files
Found a Bug or Got a Feature Request?
If you encounter any problems or have any suggestions, please open an issue on ftree/issues.
Contributing
Please refer to CONTRIBUTING.md.
Dependencies
~1.2–1.8MB
~34K SLoC