Re: Pretty-print a directory tree

Top Page
Attachments:
Message as email
+ (text/html)
+ (text/plain)
Delete this message
Reply to this message
Author: Rob Mike via PLUG-discuss
Date:  
To: plug-discuss
CC: Rob Mike, Main PLUG discussion list
Subject: Re: Pretty-print a directory tree
Are you guys still meeting online.  I tried to join last evening but the link on the webpage was dead.

 

- Victor

 
 

Sent: Friday, December 09, 2022 at 11:58 AM
From: "Thomas Scott via PLUG-discuss" <>
To: "Main PLUG discussion list" <>
Cc: "Thomas Scott" <>
Subject: Re: Pretty-print a directory tree



Is the utility `tree` an option? You can also use a subprocess call to call it from within Python. 

 






Best Regards, 

-Thomas Scott






 


On Fri, Dec 9, 2022 at 11:53 AM trent shipley via PLUG-discuss <> wrote:


 
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



---------------------------------------------------
PLUG-discuss mailing list:
To subscribe, unsubscribe, or to change your mail settings:
https://lists.phxlinux.org/mailman/listinfo/plug-discuss

--------------------------------------------------- PLUG-discuss mailing list: To subscribe, unsubscribe, or to change your mail settings: https://lists.phxlinux.org/mailman/listinfo/plug-discuss



---------------------------------------------------
PLUG-discuss mailing list:
To subscribe, unsubscribe, or to change your mail settings:
https://lists.phxlinux.org/mailman/listinfo/plug-discuss