Commit 6f1ee44f authored by ibuler's avatar ibuler

[Update] 修改一些内容

parent b1beecd8
import logging
import json
logger = logging.getLogger(__name__)
......
......@@ -151,7 +151,7 @@ class SFTPVolume(BaseVolume):
with self.sftp.open(remote_path, mode='w'):
pass
return self._info(parent_path)
return self._info(path)
def rename(self, name, target):
""" Renames a file or directory. """
......
......@@ -27,7 +27,8 @@
['rm'],
['rename'],
['view']
]
],
cwd : {oldSchool: true}
},
customData: {'sid': sid},
height: '100%',
......@@ -41,7 +42,7 @@
'rm'
],
cwd: [
'reload', 'back', '|', 'mkdir', 'mkfile', '|',
'reload', 'back', 'up', '|', 'mkdir', 'mkfile', '|',
'upload', 'paste'
],
files: [
......
......@@ -150,7 +150,7 @@ class SFTPServer(paramiko.SFTPServerInterface):
request['su'] = su
request['su_unique'] = True
else:
request['su'] = path.pop() if path else ''
request['su'], path = (path[0], path[1:]) if path else ('', path)
request['dpath'] = '/'.join(path)
return request
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment