浏览代码

测试激光

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