We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4e0dc8 commit 864c468Copy full SHA for 864c468
server/utils/zipfiles.go
@@ -49,7 +49,7 @@ func ZipFiles(filename string, files []string, oldForm, newForm string) error {
49
}
50
51
// 使用上面的FileInforHeader() 就可以把文件保存的路径替换成我们自己想要的了,如下面
52
- header.Name = strings.Replace(file, oldform, newform, -1)
+ header.Name = strings.Replace(file, oldForm, newForm, -1)
53
54
// 优化压缩
55
// 更多参考see http://golang.org/pkg/archive/zip/#pkg-constants
0 commit comments