逆向任务解压覆盖失败

This commit is contained in:
wangwenrui
2018-11-21 16:59:14 +08:00
parent 1a5f97d11d
commit 1dfcb42efe

View File

@@ -54,7 +54,9 @@ public class GzipUtil {
descFile.mkdirs();
}
if(!descFile.isDirectory()){
throw new Exception("compress destination path is not a directory");
// throw new Exception("compress destination path is not a directory");
descFile=descFile.getParentFile();
destDir=descFile.getAbsolutePath();
}
String tarFile = srcFile.getParent() + File.separator + srcFile.getName().substring(0, srcFile.getName().length()-3);
StringBuffer sb = new StringBuffer();