xiewj 1 سال پیش
والد
کامیت
1ee800a626
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      src/main/java/com/fdkankan/download/service/impl/LaserService.java

+ 4 - 0
src/main/java/com/fdkankan/download/service/impl/LaserService.java

@@ -206,6 +206,10 @@ public class LaserService  implements ILaserService {
     @SneakyThrows
     public File offlineZip( String path,String moveZipPath) {
         String bashOfflinePath = laserschool + "bashOffline.zip";
+        File file = new File(moveZipPath);
+        if(!file.getParentFile().exists()){
+            file.getParentFile().mkdirs();
+        }
         String zipCmd = ZIP_PATH;
         zipCmd = zipCmd.replace("@bashOffline", bashOfflinePath);
         zipCmd = zipCmd.replace("@target", moveZipPath);