<div dir="ltr">Yes. I discovered writing this kind of file seems to be a common, programming language independent, CS undergrad exercise.<div><br></div><div>Someone put their Python homework on GitHub, so I am going to appropriate their code and try to improve it. I'm not above looking at the 'pass' code and appropriating from that (with citations) instead of trying to reinvent wheels.</div><div><br></div><div>Trent</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Dec 9, 2022 at 12:07 PM T Zack Crawford via PLUG-discuss <<a href="mailto:plug-discuss@lists.phxlinux.org">plug-discuss@lists.phxlinux.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<span dir="ltr" style="margin-top:0px;margin-bottom:0px">The command utility `pass` has something looking almost exactly like this. It's a password manager that's really more like a frontend wrapper for decrypting gpg files located in ~/.password-store . It's not a very complicated program, maybe check out the source code to see what they do. <a href="https://www.passwordstore.org/" target="_blank">https://www.passwordstore.org/</a></span> <br>
<div><br>
<div>
<p>Dec 9, 2022 09:58:22 Thomas Scott via PLUG-discuss <<a href="mailto:plug-discuss@lists.phxlinux.org" target="_blank">plug-discuss@lists.phxlinux.org</a>>:</p>
</div>
<blockquote style="margin:0px;border-left:3px solid rgb(204,204,204);padding-left:10px">
<div dir="ltr">
<div class="gmail_default" style="font-size:small;font-family:arial,sans-serif">
Is the utility `tree` an option? You can also use a subprocess call to call it from within Python. <br>
</div>
<div class="gmail_default" style="font-size:small;font-family:arial,sans-serif"><br>
</div>
<div>
<div dir="ltr">
<div dir="ltr">
<div>
<div dir="ltr">
<div><font face="arial, sans-serif">Best Regards, </font>
</div>
<div><font face="arial, sans-serif">-Thomas Scott</font>
</div>
</div>
</div>
</div>
</div>
</div><br>
</div><br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">
On Fri, Dec 9, 2022 at 11:53 AM trent shipley via PLUG-discuss <<a href="mailto:plug-discuss@lists.phxlinux.org" target="_blank">plug-discuss@lists.phxlinux.org</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr"><br>
<div>
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."
</div>
<div><br>
</div>
<div><br>
</div>
<div>
Trent
</div>
<div><br>
</div>
<div><br>
</div>
<div>
<pre style="padding:0px;overflow:auto hidden;color:rgb(62,67,73);clear:both;font-size:0.9em;line-height:1.3;font-family:Consolas,Menlo,"DejaVu Sans Mono","Bitstream Vera Sans Mono",monospace;margin-top:0px;margin-bottom:0px">/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</pre>
</div>
</div> ---------------------------------------------------<br> PLUG-discuss mailing list: <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br> To subscribe, unsubscribe, or to change your mail settings:<br> <a href="https://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">https://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br>
</blockquote>
</div>
</blockquote>
</div>
</div>
---------------------------------------------------<br>
PLUG-discuss mailing list: <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="https://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">https://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br>
</blockquote></div>