[New-bugs-announce] [issue44008] os.walk and other directory traversal does not handle recursive mounts on Windows
R0b0t1
report at bugs.python.org
Sun May 2 00:54:09 EDT 2021
New submission from R0b0t1 <sid at aeam.us>:
Using `os.walk` to traverse a filesystem on Windows does not terminate in the case of a recursive mountpoint existing somewhere in the path.
In my case C:\circlemount is linked to C:\, producing paths such as C:\circlemount\circlemount\circlemount\circlemount\...
A drive mount point may be set up as follows:
```diskpart (enters shell)
list volume`
select volume ${#}`
assign mount=${path}
```
Notably this only happens for Win32 python. Cygwin and MSYS2 pythons as well as the pythons distributed with some packages like Inkscape behave properly.
----------
components: Windows
messages: 392666
nosy: R0b0t1, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: os.walk and other directory traversal does not handle recursive mounts on Windows
type: behavior
versions: Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44008>
_______________________________________
More information about the New-bugs-announce
mailing list