From ac60a1da46d23046d46e83ba817e946eae7c18c1 Mon Sep 17 00:00:00 2001 From: ed Date: Sat, 21 Mar 2026 19:04:14 +0000 Subject: [PATCH] shares: fix mkdir too --- copyparty/sftpd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copyparty/sftpd.py b/copyparty/sftpd.py index e4f61e4a..17c6993c 100644 --- a/copyparty/sftpd.py +++ b/copyparty/sftpd.py @@ -659,7 +659,7 @@ class SFTP_Srv(paramiko.SFTPServerInterface): self.log("mkdir(%s)" % (vp,)) try: vn, rem = self.asrv.vfs.get(vp, self.uname, False, True) - ap = os.path.join(vn.realpath, rem) + ap = vn.canonical(rem, False) bos.makedirs(ap, vf=vn.flags) # filezilla expects this if attr is not None: paramiko.SFTPServer.set_file_attr(ap, attr)