Eryk Sun added the comment:
Yes, this issue is out of date. shutil._rmtree_isdir() and
shutil._rmtree_islink() were added to handle mount points (i.e. junctions) as
if they're symlinks.
More generally, junctions and symlinks are what the platform refers to as
name-surrogate reparse points.
Irit Katriel added the comment:
The documentation for rmtree[1] now says:
Changed in version 3.8: On Windows, will no longer delete the contents of a
directory junction before removing the junction.
So I think this issue can be closed.
[1] https://docs.python.org/3/library/shutil.html#shuti
New submission from Jordan Hueckstaedt :
shutil.rmtree follows junctions / reparse points on windows and will delete
files in the target link directory.
--
components: IO, Windows
messages: 340111
nosy: Jordan Hueckstaedt, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal