parsing directory for certain filetypes

jay graves jaywgraves at gmail.com
Mon Mar 10 15:24:50 CET 2008


On Mar 10, 8:57 am, royG <roygeor... at gmail.com> wrote:
> i wrote a function to parse a given directory and make a sorted list
> of  files with .txt,.doc extensions .it works,but i want to know if it
> is too bloated..can this be rewritten in more efficient manner?

Try the 'glob' module.

...
Jay



More information about the Python-list mailing list