Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
R
RatelExtension
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
ratel
RatelExtension
Commits
f3dafd7a
Commit
f3dafd7a
authored
Sep 07, 2020
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加删除文件接口
parent
3e0d3d51
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
FileExploreHandler.java
.../api/extension/superappium/sekiro/FileExploreHandler.java
+14
-0
No files found.
src/main/java/com/virjar/ratel/api/extension/superappium/sekiro/FileExploreHandler.java
View file @
f3dafd7a
...
@@ -53,9 +53,23 @@ public class FileExploreHandler implements SekiroRequestHandler {
...
@@ -53,9 +53,23 @@ public class FileExploreHandler implements SekiroRequestHandler {
handlePost
(
sekiroRequest
,
sekiroResponse
,
targetFile
);
handlePost
(
sekiroRequest
,
sekiroResponse
,
targetFile
);
}
else
if
(
"put"
.
equalsIgnoreCase
(
op
))
{
}
else
if
(
"put"
.
equalsIgnoreCase
(
op
))
{
handlePut
(
sekiroRequest
,
sekiroResponse
,
targetFile
);
handlePut
(
sekiroRequest
,
sekiroResponse
,
targetFile
);
}
else
if
(
"delete"
.
equalsIgnoreCase
(
op
))
{
handleDelete
(
sekiroResponse
,
targetFile
);
}
}
}
}
private
void
handleDelete
(
SekiroResponse
sekiroResponse
,
File
targetFile
)
{
if
(!
targetFile
.
isFile
()
||
!
targetFile
.
exists
())
{
sekiroResponse
.
failed
(
"filed not exist"
);
}
if
(
targetFile
.
delete
())
{
sekiroResponse
.
success
(
"success"
);
}
else
{
sekiroResponse
.
failed
(
"remove failed"
);
}
}
private
void
handleGet
(
SekiroRequest
sekiroRequest
,
SekiroResponse
sekiroResponse
,
File
targetFile
)
{
private
void
handleGet
(
SekiroRequest
sekiroRequest
,
SekiroResponse
sekiroResponse
,
File
targetFile
)
{
if
(
targetFile
.
isDirectory
())
{
if
(
targetFile
.
isDirectory
())
{
List
<
String
>
ret
=
new
ArrayList
<>();
List
<
String
>
ret
=
new
ArrayList
<>();
...
...
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