|
|
|
@@ -368,11 +368,7 @@ public class NewDatasetServiceImpl implements NewDatasetService { |
|
|
|
String ci4sUsername = isPublic ? Constant.Item_Public : loginUser.getUsername(); |
|
|
|
// cd到 localPathlocal/id/下面还有一个文件夹,然后做git pull操作,然后读取里面的文件列表,列出每个文件的大小和名称,封装成MAP |
|
|
|
if (StringUtils.isEmpty(version)) { |
|
|
|
List<Map<String, Object>> versionList = this.getVersionList(repo, owner); |
|
|
|
if (versionList.size() == 0) { |
|
|
|
throw new Exception("数据集文件不存在"); |
|
|
|
} |
|
|
|
version = (String) versionList.get(0).get("name"); |
|
|
|
version = "origin"; |
|
|
|
} |
|
|
|
List<Map<String, Object>> fileDetailsAfterGitPull = FileUtil.getFiles(localPathlocal + ci4sUsername + "/datasets/" + id + "/" + repo + "/" + version + "/dataset"); |
|
|
|
|
|
|
|
|