28 Dec
2015
28 Dec
'15
7:50 p.m.
On Dec 28, 2015 2:33 PM, "Chris Barker"
On Tue, Dec 22, 2015 at 4:23 PM, Guido van Rossum
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