|
|
|
@@ -593,8 +593,7 @@ public class ModelsServiceImpl implements ModelsService { |
|
|
|
|
|
|
|
String projectUrl = gitendpoint + "/" + owner + "/" + repositoryName + ".git"; |
|
|
|
String sourcePath = modelsVo.getModelVersionVos().get(0).getUrl(); |
|
|
|
String relatePath = ci4sUsername + "/model/" + gitlinIid + "/" + repositoryName; |
|
|
|
String rootPath = localPath + relatePath; |
|
|
|
String rootPath = localPath + ci4sUsername + "/model/" + gitlinIid + "/" + repositoryName; |
|
|
|
String modelPath = rootPath + "/model"; |
|
|
|
String metaPath = rootPath + "/metadata"; |
|
|
|
|
|
|
|
@@ -617,7 +616,7 @@ public class ModelsServiceImpl implements ModelsService { |
|
|
|
modelMetaVo.setIdentifier(repositoryName); |
|
|
|
modelMetaVo.setOwner(owner); |
|
|
|
modelMetaVo.setVersionDesc(modelMetaVo.getDescription()); |
|
|
|
modelMetaVo.setRelativePaths(relatePath); |
|
|
|
modelMetaVo.setRelativePaths(modelPath); |
|
|
|
File folder = new File(modelPath); |
|
|
|
long folderSize = FileUtil.getFolderSize(folder); |
|
|
|
modelMetaVo.setModelSize(FileUtil.formatFileSize(folderSize)); |
|
|
|
@@ -689,8 +688,7 @@ public class ModelsServiceImpl implements ModelsService { |
|
|
|
|
|
|
|
String projectUrl = gitendpoint + "/" + owner + "/" + repositoryName + ".git"; |
|
|
|
String sourcePath = modelsVo.getModelVersionVos().get(0).getUrl(); |
|
|
|
String relatePath = ci4sUsername + "/model/" + modelsVo.getId() + "/" + repositoryName; |
|
|
|
String rootPath = localPath + relatePath; |
|
|
|
String rootPath = localPath + ci4sUsername + "/model/" + modelsVo.getId() + "/" + repositoryName; |
|
|
|
String modelPath = rootPath + "/model"; |
|
|
|
String metaPath = rootPath + "/metadata"; |
|
|
|
|
|
|
|
@@ -721,7 +719,7 @@ public class ModelsServiceImpl implements ModelsService { |
|
|
|
modelMetaVo.setDescription(oldModelVo.getDescription()); |
|
|
|
modelMetaVo.setModelTag(oldModelVo.getModelTag()); |
|
|
|
modelMetaVo.setModelType(oldModelVo.getModelType()); |
|
|
|
modelMetaVo.setRelativePaths(relatePath); |
|
|
|
modelMetaVo.setRelativePaths(modelPath); |
|
|
|
File folder = new File(modelPath); |
|
|
|
long folderSize = FileUtil.getFolderSize(folder); |
|
|
|
modelMetaVo.setModelSize(FileUtil.formatFileSize(folderSize)); |
|
|
|
|