|
@@ -61,15 +61,12 @@ func walkFunc(rootPath string, zipWriter *zip.Writer) filepath.WalkFunc {
|
|
|
|
|
|
// Set relative path of a file as the header name.
|
|
|
header.Name, err = filepath.Rel(rootPath, path)
|
|
|
- fmt.Println("--------------------------------------------------------")
|
|
|
- fmt.Println(rootPath)
|
|
|
if err != nil {
|
|
|
return err
|
|
|
}
|
|
|
if info.IsDir() {
|
|
|
// header.Name += string(os.PathSeparator)
|
|
|
header.Name += string(os.PathSeparator)
|
|
|
- fmt.Println(header.Name)
|
|
|
}
|
|
|
|
|
|
// Create writer for the file header and save content of the file.
|
|
@@ -80,7 +77,6 @@ func walkFunc(rootPath string, zipWriter *zip.Writer) filepath.WalkFunc {
|
|
|
if info.IsDir() {
|
|
|
return nil
|
|
|
}
|
|
|
- fmt.Println(path)
|
|
|
fmt.Println(header.Name)
|
|
|
f, err := os.Open(path)
|
|
|
if err != nil {
|