From 47fa4a9299ff1d16a30a0bbd733ef948921ce928 Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 3 Aug 2025 22:34:37 +0000 Subject: [PATCH] fix nosub with PUT uploads; closes #412 --- copyparty/httpcli.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index 44087e1f..9463e982 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -2074,16 +2074,16 @@ class HttpCli(object): rnd, lifetime, xbu, xau = self.upload_flags(vfs) lim = vfs.get_dbv(rem)[0].lim fdir = vfs.canonical(rem) - if lim: - fdir, rem = lim.all( - self.ip, rem, remains, vfs.realpath, fdir, self.conn.hsrv.broker - ) - fn = None if rem and not self.trailing_slash and not bos.path.isdir(fdir): fdir, fn = os.path.split(fdir) 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) open_ka: dict[str, Any] = {"fun": open}