解决导出文档失败的BUG

This commit is contained in:
Minho
2018-03-30 17:21:16 +08:00
parent 98e93a19d5
commit 4a6494e9f8
4 changed files with 59 additions and 28 deletions

View File

@@ -6,7 +6,6 @@ import (
"os"
"path/filepath"
"strings"
"fmt"
)
//解压zip文件
@@ -71,7 +70,6 @@ func Zip(source, target string) error {
}
header.Name = strings.TrimPrefix(strings.TrimPrefix(strings.Replace(path, "\\", "/", -1), source), "/")
fmt.Println(header.Name)
if info.IsDir() {
header.Name += "/"