Message263861
I am not sure about the wide use of this feature but I do think this is a nice feature to add to os.walk. I can see how you can implement is_too_deep by counting the number of separators in the path. However I don't think it is trivial to do that. In addition doing the same when topdown is False will not work.
As for the other limitations you suggested I think they are less trivial then limiting the recursion depth.
As for the "symlink infinite loop" I agree that it will be better to do that by tracking the paths we have already visited but avoiding infinite loop is just a bonus that you get from this feature. |
|
Date |
User |
Action |
Args |
2016-04-20 20:35:03 | palaviv | set | recipients:
+ palaviv, loewis, serhiy.storchaka, random832 |
2016-04-20 20:35:03 | palaviv | set | messageid: <1461184503.26.0.00172424656857.issue26781@psf.upfronthosting.co.za> |
2016-04-20 20:35:03 | palaviv | link | issue26781 messages |
2016-04-20 20:35:03 | palaviv | create | |
|