mirror of
https://github.com/9001/copyparty.git
synced 2026-04-12 15:22:32 -06:00
shares: fix mkdir too
This commit is contained in:
parent
2cebda3297
commit
ac60a1da46
|
|
@ -659,7 +659,7 @@ class SFTP_Srv(paramiko.SFTPServerInterface):
|
||||||
self.log("mkdir(%s)" % (vp,))
|
self.log("mkdir(%s)" % (vp,))
|
||||||
try:
|
try:
|
||||||
vn, rem = self.asrv.vfs.get(vp, self.uname, False, True)
|
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
|
bos.makedirs(ap, vf=vn.flags) # filezilla expects this
|
||||||
if attr is not None:
|
if attr is not None:
|
||||||
paramiko.SFTPServer.set_file_attr(ap, attr)
|
paramiko.SFTPServer.set_file_attr(ap, attr)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue