Message339959
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. |
|
Date |
User |
Action |
Args |
2019-04-11 10:59:34 | Epic_Wink | set | recipients:
+ Epic_Wink |
2019-04-11 10:59:34 | Epic_Wink | set | messageid: <1554980374.32.0.410571505677.issue36602@roundup.psfhosted.org> |
2019-04-11 10:59:34 | Epic_Wink | link | issue36602 messages |
2019-04-11 10:59:34 | Epic_Wink | create | |
|