Re: Pretty-print a directory tree

2022-12-09 Thread greg zegan via PLUG-discuss
Hello,  I just ran that now and it has an error by this line: yield from cls.make_tree(path, parent=displayable_root,is_last=is_last,criteria=criteria) At or around line 40.please advise.thanks,Greg On Friday, December 9, 2022 at 01:42:29 PM MST, James Mcphee via PLUG-discuss wrote:

Re: Pretty-print a directory tree

2022-12-09 Thread trent shipley via PLUG-discuss
Yes. I discovered writing this kind of file seems to be a common, programming language independent, CS undergrad exercise. 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

Re: Pretty-print a directory tree

2022-12-09 Thread James Mcphee via PLUG-discuss
https://stackoverflow.com/questions/9727673/list-directory-tree-structure-in-python On Fri, Dec 9, 2022 at 12:07 PM T Zack Crawford via PLUG-discuss < plug-discuss@lists.phxlinux.org> wrote: > The command utility `pass` has something looking almost exactly like this. > It's a password manager

Re: Pretty-print a directory tree

2022-12-09 Thread T Zack Crawford via PLUG-discuss
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.

Re: Pretty-print a directory tree

2022-12-09 Thread Rob Mike via PLUG-discuss
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

Re: Pretty-print a directory tree

2022-12-09 Thread Thomas Scott via PLUG-discuss
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 < plug-discuss@lists.phxlinux.org> wrote: > > Does anyone know how to get an ASCII/Unicode pretty-print

Pretty-print a directory tree

2022-12-09 Thread trent shipley via PLUG-discuss
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