You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
os.walk and other directory traversal does not handle recursive mounts on Windows #88174
bpo-23407: os.walk always follows Windows junctions
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2021-05-02.08:31:34.208>created_at=<Date2021-05-02.04:54:09.125>labels= ['type-bug', '3.8', 'OS-windows']
title='os.walk and other directory traversal does not handle recursive mounts on Windows'updated_at=<Date2021-05-02.08:31:34.207>user='https://github.com/R030t1'
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:
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.
Activity
R030t1 commentedon May 2, 2021
Using
os.walkto 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:
Notably this only happens for Win32 python. Cygwin and MSYS2 pythons as well as the pythons distributed with some packages like Inkscape behave properly.