mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 17:12:13 -06:00
just to be extra sure
This commit is contained in:
parent
9270c2df19
commit
974ca773be
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue