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 serhiy.storchaka
Recipients loewis, palaviv, random832, serhiy.storchaka
Date 2016-04-16.19:15:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1460834146.03.0.286779109111.issue26781@psf.upfronthosting.co.za>
In-reply-to
Content
os.walk() allows more flexible control.

    for root, dirs, files in os.walk(top):
        if is_too_deep(root):
            dirs.clear()
            continue
        ...

You can even walk up to different depth on different parts of the tree. You can limit walking not by the directory depth, but by the length of the path, or the number of links in the path, or what-you-need. Adding separate parameters for all this particular cases is not practical.

I think there is a little need in this feature.
History
Date User Action Args
2016-04-16 19:15:46serhiy.storchakasetrecipients: + serhiy.storchaka, loewis, random832, palaviv
2016-04-16 19:15:46serhiy.storchakasetmessageid: <1460834146.03.0.286779109111.issue26781@psf.upfronthosting.co.za>
2016-04-16 19:15:46serhiy.storchakalinkissue26781 messages
2016-04-16 19:15:45serhiy.storchakacreate