Pretty-print a directory tree

trent shipley trent.shipley at gmail.com
Fri Dec 9 09:52:48 MST 2022


Does anyone know how to get an ASCII/Unicode pretty-print of a directory
tree, preferably using a Python library or utility.    I wanted one to ask
a list for help, but my Google-foo was not up to the task.  A working
Google search string would be even better than "here follow the link to the
utility on GitHub."


Trent


/home/user/Projects/flask-tutorial
├── flaskr/
│   ├── __init__.py
│   ├── db.py
│   ├── schema.sql
│   ├── auth.py
│   ├── blog.py
│   ├── templates/
│   │   ├── base.html
│   │   ├── auth/
│   │   │   ├── login.html
│   │   │   └── register.html
│   │   └── blog/
│   │       ├── create.html
│   │       ├── index.html
│   │       └── update.html
│   └── static/
│       └── style.css
├── tests/
│   ├── conftest.py
│   ├── data.sql
│   ├── test_factory.py
│   ├── test_db.py
│   ├── test_auth.py
│   └── test_blog.py
├── venv/
├── setup.py
└── MANIFEST.in
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phxlinux.org/pipermail/plug-discuss/attachments/20221209/631f1354/attachment.htm>


More information about the PLUG-discuss mailing list