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
|
continue
|
||||||
try:
|
try:
|
||||||
bos.makedirs(vol.realpath, vf=vol.flags)
|
bos.makedirs(vol.realpath, vf=vol.flags)
|
||||||
files = os.listdir(vol.realpath)
|
for fn, _ in statdir(
|
||||||
for fn in files:
|
self.log_func, not self.args.no_scandir, False, vol.realpath, True
|
||||||
|
):
|
||||||
fn2 = fn.lower()
|
fn2 = fn.lower()
|
||||||
if fn == fn2:
|
if fn == fn2:
|
||||||
fn2 = fn.upper()
|
fn2 = fn.upper()
|
||||||
if fn == fn2 or fn2 in files:
|
if fn == fn2:
|
||||||
continue
|
continue
|
||||||
is_ci = os.path.exists(os.path.join(vol.realpath, fn2))
|
is_ci = os.path.exists(os.path.join(vol.realpath, fn2))
|
||||||
ccs = "y" if is_ci else "n"
|
ccs = "y" if is_ci else "n"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue