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}