mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
just to be extra sure
This commit is contained in:
parent
9270c2df19
commit
974ca773be
|
@ -2283,8 +2283,17 @@ class Up2k(object):
|
|||
else:
|
||||
# symlink to the client-provided name,
|
||||
# returning the previous upload info
|
||||
if src in self.busy_aps or (
|
||||
wark in reg and "done" not in reg[wark]
|
||||
psrc = src + ".PARTIAL"
|
||||
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(
|
||||
422, "source file busy; please try again later"
|
||||
|
|
Loading…
Reference in a new issue