瀏覽代碼

调整为copy

chenendian 6 月之前
父節點
當前提交
91d1a1e7ff
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      siwei-modules/siwei-apply/src/main/java/com/siwei/apply/utils/ServiceFileUtil.java

+ 2 - 2
siwei-modules/siwei-apply/src/main/java/com/siwei/apply/utils/ServiceFileUtil.java

@@ -103,8 +103,8 @@ public class ServiceFileUtil {
             throw new ServiceException("目录不存在: "+directoryPath);
         }
         try {
-            //Files.copy(file, dirPath, StandardCopyOption.REPLACE_EXISTING);
-            Files.move(file, dirPath, StandardCopyOption.REPLACE_EXISTING);
+            Files.copy(file, dirPath, StandardCopyOption.REPLACE_EXISTING);
+            //Files.move(file, dirPath, StandardCopyOption.REPLACE_EXISTING);
         } catch (IOException e) {
             throw new RuntimeException(e);
         }