How to generate a Project Directory Tree

Description of this Note
Author
Published

June 9, 2024

Expected outcome:

.
├── environmet.yml
├── README.md
├── .gitignore
└── src
    ├── datasets
       └── constants.py
    ├── train.py
    └── utils
        ├── CLIP_encoder.py
        └── __init__.py

5 directories, 5 files

To accomplish this

brew install tree
cd project/

To print the working directory with specific depth:

tree -L 2

To avoid some directories being printed

tree -I 'venv|node_modules'