On Dec 28, 2015 2:33 PM, "Chris Barker" chris.barker@noaa.gov wrote:
On Tue, Dec 22, 2015 at 4:23 PM, Guido van Rossum guido@python.org
wrote:
The two-level iteration forced upon you by os.walk() is indeed often
unnecessary -- but handling dirs and files separately usually makes sense,
indeed, but not always, so a simple API that allows you to get a flat
walk would be nice....
The path.py .walk* APIs work great w/ fnmatch:
https://pythonhosted.org/path.py/api.html#path.Path.walk
https://pythonhosted.org/path.py/api.html#path.Path.walkdirs
https://pythonhosted.org/path.py/api.html#path.Path.walkfiles