1
0
chenendian 3 месяцев назад
Родитель
Сommit
91d1a1e7ff

+ 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);
         }