mirror of
https://github.com/9001/copyparty.git
synced 2026-08-13 13:53:06 -06:00
fix slow boot when a volume root has many files
This commit is contained in:
parent
0f2040c383
commit
cdb474c8ec
|
|
@ -2870,12 +2870,13 @@ class AuthSrv(object):
|
|||
continue
|
||||
try:
|
||||
bos.makedirs(vol.realpath, vf=vol.flags)
|
||||
files = os.listdir(vol.realpath)
|
||||
for fn in files:
|
||||
for fn, _ in statdir(
|
||||
self.log_func, not self.args.no_scandir, False, vol.realpath, True
|
||||
):
|
||||
fn2 = fn.lower()
|
||||
if fn == fn2:
|
||||
fn2 = fn.upper()
|
||||
if fn == fn2 or fn2 in files:
|
||||
if fn == fn2:
|
||||
continue
|
||||
is_ci = os.path.exists(os.path.join(vol.realpath, fn2))
|
||||
ccs = "y" if is_ci else "n"
|
||||
|
|
|
|||
Loading…
Reference in a new issue