In the land of folders wide and deep,
A script was born, to help you peep.
View your files and folders in a tree format. Has options to filter specific file types. I find it helpful when I want to describe my project structure to openai.
- Recursively lists directories and files.
- Options to display only directories.
- Filter out or include files based on their extensions.
python tree.py [directory] [options]
Options:
-d
: Display only directories.-fo / --filter_out
: Exclude files with specified extensions.-f / --filter
: Include only files with specified extensions.
Example output
test/
simple_gui.py
test0_output.txt
Clone the repository and add the script location to your PATH.
- Add a depth limit
- Add option for box drawing, e.g.
└──file.py
Distributed under the MIT License. See LICENSE
for more information.