mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-09-19 01:58:00 +08:00
解决导出文档失败的BUG
This commit is contained in:
@@ -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 += "/"
|
||||
|
Reference in New Issue
Block a user