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

noreply@sourceforge.net noreply@sourceforge.net
Thu, 12 Dec 2002 14:29:13 -0800


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

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Edward C. Jones (edcjones)
Assigned to: Nobody/Anonymous (nobody)
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.


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

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