diff options
| author | fangshunjian <[email protected]> | 2018-11-26 10:49:34 +0800 |
|---|---|---|
| committer | fangshunjian <[email protected]> | 2018-11-26 10:49:34 +0800 |
| commit | 48e8a81442f03d836825754f4d3626e3ac0cdb56 (patch) | |
| tree | 2d91fde12d4ff7add8ebbb1121fc38c31a8b3529 | |
| parent | 48966d406c6887b2664932b662335072770d4ac7 (diff) | |
| parent | 1dfcb42efe46d1780b9ece545d130f103e237e1c (diff) | |
Merge branch 'dev' of [email protected]:nms/nmsclient.git into dev
| -rw-r--r-- | src/com/nis/nmsclient/util/GzipUtil.java | 4 |
1 files changed, 3 insertions, 1 deletions
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(); |
