Recursing into directories

Michael Chermside mcherm at destiny.com
Mon Dec 10 21:58:33 CET 2001


In addition to os.path.walk, I'm also somewhat partial to 
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52664 but both 
are functions, not classes as you requested. Of course, it's simple 
enough to build a class that uses the function....

-- Michael Chermside

> Hi,
> 
> Is there a built-in class (in dircache, os.path????) that 
> recurses thru a directory tree?
> 
> I've written one using dircache.listdir, but if there is some-
> thing pre-written, I'd rather use that...
> 
> Thanks,
> Ron
> -- 
> +-----------------------------------------------------------------+
> | Ron Johnson, Jr.        Home: ron.l.johnson at home.com |
> | Jefferson, LA  USA      http://ronandheather.dhs.org:81 |
> +-----------------------------------------------------------------+
> 
> 
> 
> 






More information about the Python-list mailing list