New submission from Sworddragon: The following was tested on Linux. In the attachments is the example code and here is my output:
sworddragon@ubuntu:/tmp$ ./test.py 1 I'm deleting the list of directories on every recursion and skipping if I'm directly in /proc (which is theoretically already unneeded). Also the default value for topdown is True and followlinks is False. I have already read the documentation but I'm not seeing any way how the condition could be True so I'm assuming this is a bug. ---------- components: Library (Lib) files: test.py messages: 212159 nosy: Sworddragon priority: normal severity: normal status: open title: os.walk recurses down even with dirnames deleted type: behavior versions: Python 2.7, Python 3.4 Added file: http://bugs.python.org/file34219/test.py _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20764> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com