From 9303b69ea569bcb5e581147543a3fd58e90d0d25 Mon Sep 17 00:00:00 2001
From: sunty <1172534965@qq.com>
Date: 星期四, 20 八月 2020 20:05:23 +0800
Subject: [PATCH] add get buckets contrl

---
 extend/util/zip.go |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/extend/util/zip.go b/extend/util/zip.go
index 3e17773..0fac79f 100644
--- a/extend/util/zip.go
+++ b/extend/util/zip.go
@@ -281,6 +281,12 @@
 	return nil
 }
 
+func UnTarGzByCmd(srcFile string, dstPath string) (string,error) {
+	cmd := exec.Command("tar","-zxvf", srcFile, "-C", dstPath)
+	outPut, err := cmd.Output()
+	return string(outPut), err
+}
+
 // 鍥犱负瑕佸湪 defer 涓叧闂枃浠讹紝鎵�浠ヨ鍗曠嫭鍒涘缓涓�涓嚱鏁�
 func unTarFile(dstFile string, tr *tar.Reader) error {
 	// 鍒涘缓绌烘枃浠讹紝鍑嗗鍐欏叆瑙e寘鍚庣殑鏁版嵁

--
Gitblit v1.8.0