1
0
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);
         }