[New-bugs-announce] [issue20764] os.walk recurses down even with dirnames deleted

Sworddragon report at bugs.python.org
Tue Feb 25 05:26:55 CET 2014


New submission from Sworddragon:

The following was tested on Linux. In the attachments is the example code and here is my output:

sworddragon at 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 <report at bugs.python.org>
<http://bugs.python.org/issue20764>
_______________________________________


More information about the New-bugs-announce mailing list