Browse Source

优化dvc测试

dev-check
chenzhihang 11 months ago
parent
commit
18edf9d512
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/utils/DVCUtils.java

+ 7
- 0
ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/utils/DVCUtils.java View File

@@ -68,6 +68,13 @@ public class DVCUtils {
}
}

public void mkdir(String path) throws IOException {
Path targetDir = Paths.get(path);
if (!Files.exists(targetDir)) {
Files.createDirectories(targetDir);
}
}

public void moveFiles(String sourcePath, String targetPath) throws Exception {
Path sourceDir = Paths.get(sourcePath);
Path targetDir = Paths.get(targetPath);


Loading…
Cancel
Save