From 1dfcb42efe46d1780b9ece545d130f103e237e1c Mon Sep 17 00:00:00 2001 From: wangwenrui Date: Wed, 21 Nov 2018 16:59:14 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=86=E5=90=91=E4=BB=BB=E5=8A=A1=E8=A7=A3?= =?UTF-8?q?=E5=8E=8B=E8=A6=86=E7=9B=96=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/com/nis/nmsclient/util/GzipUtil.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/com/nis/nmsclient/util/GzipUtil.java b/src/com/nis/nmsclient/util/GzipUtil.java index 75dce1b..3c79508 100644 --- a/src/com/nis/nmsclient/util/GzipUtil.java +++ b/src/com/nis/nmsclient/util/GzipUtil.java @@ -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();