Commit 0bad647d authored by hanson.yao's avatar hanson.yao

处理内网commons-io.jar 无法找到moveFile方法

parent 92b9a44d
......@@ -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);
......
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