Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
B
BasicAPI
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
杜科
BasicAPI
Commits
0bad647d
Commit
0bad647d
authored
Aug 23, 2023
by
hanson.yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理内网commons-io.jar 无法找到moveFile方法
parent
92b9a44d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
ModelService.java
src/com/yonde/cadpro/service/ModelService.java
+3
-1
No files found.
src/com/yonde/cadpro/service/ModelService.java
View file @
0bad647d
...
...
@@ -2855,7 +2855,8 @@ public class ModelService {
//throw new WTException(soruceZip.getAbsolutePath() + "上传失败!");
}
File
toZip
=
new
File
(
toPath
+
zipName
);
FileUtils
.
moveFile
(
soruceZip
,
toZip
);
FileUtils
.
copyFile
(
soruceZip
,
toZip
);
//解压缩
ZipFileUtil
.
unZipFile
(
toZip
,
toFolder
);
...
...
@@ -2865,6 +2866,7 @@ public class ModelService {
throw
new
WTException
(
primaryFile
.
getAbsolutePath
()
+
"获取失败!"
);
}
returnFilePath
=
primaryFile
.
getAbsolutePath
();
soruceZip
.
deleteOnExit
();
}
System
.
out
.
println
(
"returnFilePath : "
+
returnFilePath
);
...
...
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