mirror of
https://github.com/9001/copyparty.git
synced 2026-11-21 07:06:34 +00:00
optimize rmtree on windows
This commit is contained in:
1 parent
806fac1742
commit
79097bb43c
1 file changed
+3
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user