just to be extra sure

This commit is contained in:
ed 2023-03-09 21:49:29 +00:00
parent 9270c2df19
commit 974ca773be

View file

@ -2283,8 +2283,17 @@ class Up2k(object):
else: else:
# symlink to the client-provided name, # symlink to the client-provided name,
# returning the previous upload info # returning the previous upload info
if src in self.busy_aps or ( psrc = src + ".PARTIAL"
wark in reg and "done" not in reg[wark] if self.args.dotpart:
m = re.match(r"(.*[\\/])(.*)", psrc)
if m: # always true but...
zs1, zs2 = m.groups()
psrc = zs1 + "." + zs2
if (
src in self.busy_aps
or psrc in self.busy_aps
or (wark in reg and "done" not in reg[wark])
): ):
raise Pebkac( raise Pebkac(
422, "source file busy; please try again later" 422, "source file busy; please try again later"