逆向任务解压覆盖失败
This commit is contained in:
@@ -54,7 +54,9 @@ public class GzipUtil {
|
|||||||
descFile.mkdirs();
|
descFile.mkdirs();
|
||||||
}
|
}
|
||||||
if(!descFile.isDirectory()){
|
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);
|
String tarFile = srcFile.getParent() + File.separator + srcFile.getName().substring(0, srcFile.getName().length()-3);
|
||||||
StringBuffer sb = new StringBuffer();
|
StringBuffer sb = new StringBuffer();
|
||||||
|
|||||||
Reference in New Issue
Block a user