From 076d32dee52a9f28d6a50774b2b44a875570e751 Mon Sep 17 00:00:00 2001 From: ed Date: Fri, 24 Sep 2021 19:21:19 +0200 Subject: [PATCH] up2k-srv: try all dupes for matching path --- copyparty/up2k.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/copyparty/up2k.py b/copyparty/up2k.py index 7f51a8c7..21c7fe11 100644 --- a/copyparty/up2k.py +++ b/copyparty/up2k.py @@ -1112,6 +1112,9 @@ class Up2k(object): if dp_dir.startswith("//") or dp_fn.startswith("//"): dp_dir, dp_fn = s3dec(dp_dir, dp_fn) + if job and (dp_dir != cj["prel"] or dp_fn != cj["name"]): + continue + dp_abs = "/".join([cj["ptop"], dp_dir, dp_fn]) # relying on path.exists to return false on broken symlinks if bos.path.exists(dp_abs): @@ -1127,7 +1130,6 @@ class Up2k(object): "hash": [], "need": [], } - break if job and wark in reg: del reg[wark]