|
@@ -172,6 +172,12 @@ func UnzipFile(zipFilePath string, destDir string) error {
|
|
|
return unzip(srcFile, srcFileInfo.Size(), destDir)
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
func UnzipBytes(zipFileBytes []byte, destDir string) error {
|
|
|
return unzip(bytes.NewReader(zipFileBytes), int64(len(zipFileBytes)), destDir)
|
|
|
}
|