Overview | Examples | Technologies | Installation | Usage
Visualize the current working directory's file structure. Hidden files are not shown by default, however, hidden files can be shown if specified via the -a flag.
A portion of the file structure of this repository, including hidden files
- Python
- Termcolor and Colorama
- For adding colored text to the terminal
# clone the repo
$ git clone https://github.com/Alex0Blackwell/tree.git
# change the working directory to tree
$ cd tree
# install python3 and python3-pip if they are not installed
# install the requirements
$ python3 -m pip install -r requirements.txt
This script needs to be able to run from any directory. Otherwise it will only be able to display the file structure of the repository itself.
chmod +x tree.py
cp tree.py /bin/tree
Now you can use the program in any directory!
$ tree
usage: tree
tree: displays file structure (Version 0.0.1)
arguments:
-h, --help Show this help message and exit
-a, --all Include hidden files in tree visualization
To display the file structure, including hidden files, in the current directory:
tree -a
Licensed under the MIT License.