|
|
@@ -892,7 +892,7 @@ public class ModelsServiceImpl implements ModelsService { |
|
|
String localPath1 = localPath + ci4sUsername + "/model/" + id + "/" + identifier + "/" + version; |
|
|
String localPath1 = localPath + ci4sUsername + "/model/" + id + "/" + identifier + "/" + version; |
|
|
// 打包 data 文件夹 |
|
|
// 打包 data 文件夹 |
|
|
String dataFolderPath = localPath1 + "/model"; |
|
|
String dataFolderPath = localPath1 + "/model"; |
|
|
String zipFilePath = localPath1 + "/model.zip"; |
|
|
|
|
|
|
|
|
String zipFilePath = localPath1 + "/model"; |
|
|
try (FileOutputStream fos = new FileOutputStream(zipFilePath); |
|
|
try (FileOutputStream fos = new FileOutputStream(zipFilePath); |
|
|
ZipOutputStream zos = new ZipOutputStream(fos)) { |
|
|
ZipOutputStream zos = new ZipOutputStream(fos)) { |
|
|
Path sourcePath = Paths.get(dataFolderPath); |
|
|
Path sourcePath = Paths.get(dataFolderPath); |
|
|
|