Re: is anyone using return_folders in tools.Walk()?

Ryan Barrett <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.devel
Message-ID <[email protected]>
On Thu, 5 Jul 2007, Will Guaraldi wrote:

> Are you sure about that? I didn't think the stat'ing was done in tools.Walk.
> Walk will walk the directory tree twice, but I don't see it stat'ing things.

it calls os.path.isfile(), islink(), and isdir() (twice) on each result path 
that os.listdir() returns. all of those most likely stat the underlying file 
or directory, unless there's magic i'm unaware of. :P

-Ryan

--
http://snarfed.org/

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.