mirror of
https://github.com/9001/copyparty.git
synced 2026-03-23 00:23:47 +10:00
shares: fix mkdir too
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user