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 palaviv
Recipients loewis, palaviv
Date 2016-04-16.14:11:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1460815870.93.0.432472188169.issue26781@psf.upfronthosting.co.za>
In-reply-to
Content
I am suggesting to add max_depth argument to os.walk. I think this is very useful for two cases. The trivial one is when someone wants to walk on a directory tree up to specific depth. The second one is when you follow symlinks and wish to avoid infinite loop.

The patch add the max_depth both to os.walk and os.fwalk.
History
Date User Action Args
2016-04-16 14:11:11palavivsetrecipients: + palaviv, loewis
2016-04-16 14:11:10palavivsetmessageid: <1460815870.93.0.432472188169.issue26781@psf.upfronthosting.co.za>
2016-04-16 14:11:10palavivlinkissue26781 messages
2016-04-16 14:11:10palavivcreate