[Patches] [ python-Patches-652980 ] Generator form of os.path.walk

noreply@sourceforge.net noreply@sourceforge.net
Thu, 12 Dec 2002 15:58:05 -0800


Patches item #652980, was opened at 2002-12-12 17:29
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=652980&group_id=5470

>Category: Library (Lib)
>Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Edward C. Jones (edcjones)
>Assigned to: Raymond Hettinger (rhettinger)
Summary: Generator form of os.path.walk

Initial Comment:
 Generator yielding "top" and all files and directories
under it (except "." and ".."). "walk2" is much easier
to use than "walk" but lacks its flexibility. The
generator does a top-down traversal of the directory
tree. Unlike "walk", "walk2" raises an exception if top
does not exist. It is easy to modify the code to return
only files or only directories.


----------------------------------------------------------------------

>Comment By: Raymond Hettinger (rhettinger)
Date: 2002-12-12 18:58

Message:
Logged In: YES 
user_id=80475

The upload didn't make it.
Try resubmitting the patch.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=652980&group_id=5470