This commit is contained in:
陈景阳
2019-08-15 09:10:49 +08:00

View File

@@ -106,7 +106,7 @@ func DeCompress(srcFile *os.File, dstPath string) error {
}
// 创建新文件
newFile, err := os.Create(filepath.Join(dstPath, innerFile.Name))
newFile, err := os.OpenFile(filepath.Join(dstPath, innerFile.Name), os.O_RDWR|os.O_CREATE|os.O_TRUNC, info.Mode())
if err != nil {
log.Errorf("Unzip File Error : " + err.Error())
debug.PrintStack()