optimize rmtree on windows

This commit is contained in:
ed 2021-10-19 01:04:21 +02:00
parent 806fac1742
commit 79097bb43c

View file

@ -1191,6 +1191,9 @@ def sendfile_kern(lower, upper, f, s):
def statdir(logger, scandir, lstat, top):
if lstat and ANYWIN:
lstat = False
if lstat and not os.supports_follow_symlinks:
scandir = False