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 p-ganssle
Recipients Epic_Wink, SilentGhost, p-ganssle, pitrou
Date 2019-04-11.22:10:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1555020645.69.0.165429852367.issue36602@roundup.psfhosted.org>
In-reply-to
Content
> Is the behaviour you're proposing any different from using Path.rglob('*')?

I believe `rglob("*")` is eager, while `iterdir` is lazy.

@Epic_Wink:
> This would be trivial to implement as 'iterdir' can simply yield from subdirectories' 'iterdir'.

One thing you may need to worry about here is the fact that symlinks can have cycles, so you may need to do some cycle detection to avoid creating the dangerous possibility of infinite loops.

There's also the question of whether you want this to be a depth-first or breadth-first traversal, and whether you would want both of these to be options.
History
Date User Action Args
2019-04-11 22:10:45p-gansslesetrecipients: + p-ganssle, pitrou, SilentGhost, Epic_Wink
2019-04-11 22:10:45p-gansslesetmessageid: <1555020645.69.0.165429852367.issue36602@roundup.psfhosted.org>
2019-04-11 22:10:45p-gansslelinkissue36602 messages
2019-04-11 22:10:45p-gansslecreate