Skip to content

Commit

Permalink
Merge pull request #10 from shurcooL/fix-zip-header-name
Browse files Browse the repository at this point in the history
Use path.Join when setting zip.FileHeader.Name.
  • Loading branch information
mholt authored Aug 29, 2016
2 parents 9abfedc + c350559 commit eb71e84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zip.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func zipFile(w *zip.Writer, source string) error {
}

if baseDir != "" {
header.Name = filepath.Join(baseDir, strings.TrimPrefix(fpath, source))
header.Name = path.Join(baseDir, strings.TrimPrefix(fpath, source))
}

if info.IsDir() {
Expand Down

0 comments on commit eb71e84

Please sign in to comment.