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 Epic_Wink
Recipients Epic_Wink
Date 2019-04-11.10:59:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1554980374.32.0.410571505677.issue36602@roundup.psfhosted.org>
In-reply-to
Content
Currently, 'pathlib.Path.iterdir' can only list the contents of the instance directory. It is common to also want the contents of subdirectories recursively.

The proposal is for 'pathlib.Path.iterdir' to have an argument 'recursive' which when 'True' will cause 'iterdir' to yield contents of subdirectories recursively.

This would be trivial to implement as 'iterdir' can simply yield from subdirectories' 'iterdir'.

A decision would have to be made whether to continue to yield the subdirectories, or skip them. Another decision would be for whether each path should be resolved before checking if it is a directory to be recursed into.
History
Date User Action Args
2019-04-11 10:59:34Epic_Winksetrecipients: + Epic_Wink
2019-04-11 10:59:34Epic_Winksetmessageid: <1554980374.32.0.410571505677.issue36602@roundup.psfhosted.org>
2019-04-11 10:59:34Epic_Winklinkissue36602 messages
2019-04-11 10:59:34Epic_Winkcreate