[Python-Dev] Re: os.path.walk() lacks 'depth first' option

andrew cooke andrew@acooke.org
Fri, 25 Apr 2003 07:47:05 -0400 (CLT)


Tim Peters said:
> I've checked this in, modified to treat symlinks the same way
> os.path.walk()
> treated them, and with docs and test cases.  It wasn't my intent to cut
> off
> people who want fancier stuff, but available time is finite, and at least
> now they can demonstrate their sincerity by supplying code, doc, and test
> suite patches <wink>.

For the record - the version I posted (with breadth-first as an option)
wasn't reliable (it runs out of stack space on reasonable directory
structures).

Andrew

-- 
http://www.acooke.org/andrew