mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
fix nosub with PUT uploads; closes #412
This commit is contained in:
parent
9db8037e39
commit
47fa4a9299
|
@ -2074,16 +2074,16 @@ class HttpCli(object):
|
||||||
rnd, lifetime, xbu, xau = self.upload_flags(vfs)
|
rnd, lifetime, xbu, xau = self.upload_flags(vfs)
|
||||||
lim = vfs.get_dbv(rem)[0].lim
|
lim = vfs.get_dbv(rem)[0].lim
|
||||||
fdir = vfs.canonical(rem)
|
fdir = vfs.canonical(rem)
|
||||||
if lim:
|
|
||||||
fdir, rem = lim.all(
|
|
||||||
self.ip, rem, remains, vfs.realpath, fdir, self.conn.hsrv.broker
|
|
||||||
)
|
|
||||||
|
|
||||||
fn = None
|
fn = None
|
||||||
if rem and not self.trailing_slash and not bos.path.isdir(fdir):
|
if rem and not self.trailing_slash and not bos.path.isdir(fdir):
|
||||||
fdir, fn = os.path.split(fdir)
|
fdir, fn = os.path.split(fdir)
|
||||||
rem, _ = vsplit(rem)
|
rem, _ = vsplit(rem)
|
||||||
|
|
||||||
|
if lim:
|
||||||
|
fdir, rem = lim.all(
|
||||||
|
self.ip, rem, remains, vfs.realpath, fdir, self.conn.hsrv.broker
|
||||||
|
)
|
||||||
|
|
||||||
bos.makedirs(fdir, vf=vfs.flags)
|
bos.makedirs(fdir, vf=vfs.flags)
|
||||||
|
|
||||||
open_ka: dict[str, Any] = {"fun": open}
|
open_ka: dict[str, Any] = {"fun": open}
|
||||||
|
|
Loading…
Reference in a new issue