Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
coco
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
coco
Commits
6f1ee44f
Commit
6f1ee44f
authored
Sep 21, 2018
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 修改一些内容
parent
b1beecd8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
connector.py
coco/httpd/elfinder/connector.py
+0
-1
sftp.py
coco/httpd/elfinder/volumes/sftp.py
+1
-1
file_manager.html
coco/httpd/templates/elfinder/file_manager.html
+3
-2
sftp.py
coco/sftp.py
+1
-1
No files found.
coco/httpd/elfinder/connector.py
View file @
6f1ee44f
import
logging
import
json
logger
=
logging
.
getLogger
(
__name__
)
...
...
coco/httpd/elfinder/volumes/sftp.py
View file @
6f1ee44f
...
...
@@ -151,7 +151,7 @@ class SFTPVolume(BaseVolume):
with
self
.
sftp
.
open
(
remote_path
,
mode
=
'w'
):
pass
return
self
.
_info
(
pa
rent_pa
th
)
return
self
.
_info
(
path
)
def
rename
(
self
,
name
,
target
):
""" Renames a file or directory. """
...
...
coco/httpd/templates/elfinder/file_manager.html
View file @
6f1ee44f
...
...
@@ -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
:
[
...
...
coco/sftp.py
View file @
6f1ee44f
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment