[issue36621] shutil.rmtree follows junctions on windows
Eryk Sun
report at bugs.python.org
Sun Jun 20 02:34:47 EDT 2021
Eryk Sun <eryksun at gmail.com> 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. This category isn't handled generically by rmtree(). It wouldn't be hard to generalize the implementation, but that's something for a new issue.
----------
nosy: +eryksun
stage: -> resolved
status: pending -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36621>
_______________________________________
More information about the Python-bugs-list
mailing list