listdir() with mask
Vladimir Rusinov
vladimir at greenmice.info
Fri Dec 14 02:56:43 EST 2007
Hello!
Is there any easy way to list files using bash-like patterns? Something like
listfiles("/var/log/*.log"), listfiles("/var/{cache,run}/*").
Also, I'll need something like listfiles("/tmp/**/*.tmp"), where ** is
unlimited number of folders (like is zsh).
Thanks and sorry for my English.
--
Vladimir Rusinov
GreenMice Solutions: IT-решения на базе Linux
http://greenmice.info/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20071214/36dc85eb/attachment.html>
More information about the Python-list
mailing list