[Python-ideas] find-like functionality in pathlib
Ram Rachum
ram at rachum.com
Fri Dec 4 14:00:47 EST 2015
What do you think about implementing functionality similar to the `find`
utility in Linux in the Pathlib module? I wanted this today, I had a script
to write to archive a bunch of files from a folder, and I decided to try
writing it in Python rather than in Bash. But I needed something stronger
than `Path.glob` in order to select the files. I wanted a regular
expression. (In this particular case, I wanted to get a list of all the
files excluding the `.git` folder and all files inside of it.
Thanks,
Ram.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20151204/7939f85f/attachment.html>
More information about the Python-ideas
mailing list