소스 검색

调整为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);
         }