提交 a5b37768 编写于 作者: Mr.奇淼('s avatar Mr.奇淼(

命名修复

上级 1260af39
......@@ -49,7 +49,7 @@ func ZipFiles(filename string, files []string, oldForm, newForm string) error {
}
// 使用上面的FileInforHeader() 就可以把文件保存的路径替换成我们自己想要的了,如下面
header.Name = strings.Replace(file, oldform, newform, -1)
header.Name = strings.Replace(file, oldForm, newForm, -1)
// 优化压缩
// 更多参考see http://golang.org/pkg/archive/zip/#pkg-constants
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册