From ad18b6e15ef4a98810c16afba3cd47cadbbcdddd Mon Sep 17 00:00:00 2001 From: ed Date: Fri, 12 Aug 2022 16:31:36 +0200 Subject: [PATCH] stop reindexing empty files on startup --- copyparty/up2k.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copyparty/up2k.py b/copyparty/up2k.py index 7625b2a6..c125b5e6 100644 --- a/copyparty/up2k.py +++ b/copyparty/up2k.py @@ -833,7 +833,7 @@ class Up2k(object): self.log(t.format(top, rp, len(in_db), rep_db)) dts = -1 - if dts == lmod and dsz == sz and (nohash or dw[0] != "#"): + if dts == lmod and dsz == sz and (nohash or dw[0] != "#" or not sz): continue t = "reindex [{}] => [{}] ({}/{}) ({}/{})".format(