cpython
b93576a2 - [3.15] gh-156707: Do not follow junctions in os_helper.rmtree() on Windows (GH-156710) (#156714)

Commit
4 days ago
[3.15] gh-156707: Do not follow junctions in os_helper.rmtree() on Windows (GH-156710) (#156714) gh-156707: Do not follow junctions in os_helper.rmtree() on Windows (GH-156710) os.lstat() reports a junction as a directory, so the junction was followed and files in the directory it points to could be removed. Now the junction itself is removed, as in os.walk() and shutil.rmtree(). (cherry picked from commit d87ee279a1f6dfdb478ede5f0ba0360123d85916) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Parents
Loading