[issue44008] os.walk and other directory traversal does not handle recursive mounts on Windows

2021-05-01 Thread R0b0t1


New submission from R0b0t1 :

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 
<https://bugs.python.org/issue44008>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29707] os.path.ismount() always returns false for mount --bind on same filesystem

2021-05-02 Thread R0b0t1


R0b0t1  added the comment:

https://bugs.python.org/issue29707#msg331921
> But what is the problem with getting False for bind mounts on the same 
> filesystem?

When doing directory traversal it is important to not duplicate listings. It 
seems this can cause duplication. I'm replying to echo Mikko Korkalo's 
sentiment, this really should not have been closed.

This should likely be addressed along with https://bugs.python.org/issue23407.

------
nosy: +R0b0t1

___
Python tracker 
<https://bugs.python.org/issue29707>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com