This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author apocalyptech
Recipients apocalyptech
Date 2019-05-01.15:20:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1556724007.57.0.489851634937.issue36771@roundup.psfhosted.org>
In-reply-to
Content
It'd be nice to have an option to os.walk which would return DirEntry objects in its return tuple, as opposed to just the string filenames/dirnames.  (Or failing that, an alternate function which does so.)  The function already uses os.scandir() internally, so the DirEntry objects already exist -- I assume it'd be a pretty easy change.  At the moment, if I want to be efficient and use os.scandir() myself, I've got to basically reimplement os.walk(), which seems silly since os.walk is already calling scandir itself.
History
Date User Action Args
2019-05-01 15:20:07apocalyptechsetrecipients: + apocalyptech
2019-05-01 15:20:07apocalyptechsetmessageid: <1556724007.57.0.489851634937.issue36771@roundup.psfhosted.org>
2019-05-01 15:20:07apocalyptechlinkissue36771 messages
2019-05-01 15:20:07apocalyptechcreate