Perl file::find module equivalent in Python?

Greg Yasko ryasko at gator.net
Thu Nov 6 01:32:00 CET 2003


Skip Montanaro wrote:

>     Greg> Hi. Does anyone know if there's an equivalent of Perl's file::find
>     Greg> module in Python? It traverses a directory. I've googled
>     Greg> extensively and checked this newsgroup and can't find anything
>     Greg> like it for Python.
> 
> I've never used file::find, but from your short description ("traverses a
> directory"), I suspect you're looking for os.listdir, os.path.walk or
> perhaps glob.glob:
> 
> Skip
> 
Thanks for answering my question. I knew there had to be some way to do 
it:-)





More information about the Python-list mailing list