|
|
|
@@ -157,7 +157,7 @@ public class NewDatasetServiceImpl implements NewDatasetService { |
|
|
|
YamlUtils.generateYamlFile(JsonUtils.objectToMap(datasetVo), localPath, "dataset"); |
|
|
|
|
|
|
|
// dvc init 初始化 |
|
|
|
// dvcUtils.mkdir(datasetPath); |
|
|
|
dvcUtils.mkdir(datasetPath); |
|
|
|
dvcUtils.dvcInit(localPath); |
|
|
|
// 配置远程S3地址 |
|
|
|
dvcUtils.dvcRemoteAdd(localPath, s3Path); |
|
|
|
@@ -192,7 +192,7 @@ public class NewDatasetServiceImpl implements NewDatasetService { |
|
|
|
|
|
|
|
String s3Path1 = bucketName + "/mini-model-management-platform-files" + "/" + relatePath1; |
|
|
|
//删掉已存在文件夹 |
|
|
|
// dvcUtils.deleteDirectory(datasetPath1); |
|
|
|
dvcUtils.deleteDirectory(datasetPath1); |
|
|
|
dvcUtils.moveFiles(sourcePath, datasetPath1); |
|
|
|
// 拼接生产的元数据后写入yaml文件 |
|
|
|
datasetVo.setUpdateTime(DateUtils.getTime()); |
|
|
|
|