Skip to content

Commit

Permalink
fix #7
Browse files Browse the repository at this point in the history
  • Loading branch information
unknwon committed Oct 7, 2015
1 parent 2e70a13 commit 7f5e046
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions zip/write.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@ func packFile(srcFile string, recPath string, zw *zip.Writer, fi os.FileInfo) er
if err != nil {
return err
}
defer f.Close()

if _, err = io.Copy(fw, f); err != nil {
return err
}
Expand Down

0 comments on commit 7f5e046

Please sign in to comment.