2 stable releases

new 1.1.0 Oct 14, 2024
1.0.0 Sep 29, 2024
0.1.0 Sep 29, 2024

#84 in Cargo plugins

Download history 294/week @ 2024-09-29 6/week @ 2024-10-06

300 downloads per month

MIT/Apache

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 directory
  • ftree /home/user: Visualize a specific directory
  • ftree relative/path/to/folder: Visualize a relative path
  • ftree --git: Visualize the current directory, excluding git-related files
  • ftree --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
~33K SLoC