[issue36771] Feature Request: An option to os.walk() to return os.DirEntry lists instead of just filenames/dirnames

CJ Kucera report at bugs.python.org
Wed May 1 12:11:46 EDT 2019


CJ Kucera <pez at apocalyptech.com> added the comment:

I've started up a Github PR for this, btw, though IMO it's not really in a mergeable state yet:

1) I wasn't sure what to do about os.fwalk(), since that *doesn't* already generate DirEntry objects, and this change would introduce a small inconsistency between the two, functionalitywise.
2) Also wasn't sure what to do about unit tests, though I'll ponder that some more once I've got some time later.
3) The actual implementation is pretty trivial, but could perhaps be handled differently.

The systems's still processing my CLA signature, as well, so there's that too.  :)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36771>
_______________________________________


More information about the Python-bugs-list mailing list