mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
dodge a bullet on centos7
This commit is contained in:
parent
19f23c686e
commit
a362ee2246
|
@ -1034,11 +1034,13 @@ def sendfile_kern(lower, upper, f, s):
|
|||
|
||||
|
||||
def statdir(logger, scandir, lstat, top):
|
||||
if lstat and not os.supports_follow_symlinks:
|
||||
scandir = False
|
||||
|
||||
try:
|
||||
btop = fsenc(top)
|
||||
if scandir and hasattr(os, "scandir"):
|
||||
src = "scandir"
|
||||
lstat = lstat and os.supports_follow_symlinks
|
||||
with os.scandir(btop) as dh:
|
||||
for fh in dh:
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue