Skip to content
This repository has been archived by the owner on Feb 26, 2019. It is now read-only.

Commit

Permalink
Use os.Chmod instead of file.Chmod for compatibility with Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbrand committed May 31, 2016
1 parent 9c5a6db commit 016463a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion save.go
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ func copyFile(dst, src string) error {
if err != nil {
return err
}
if err := w.Chmod(si.Mode()); err != nil {
if err := os.Chmod(dst, si.Mode()); err != nil {
return err
}

Expand Down

0 comments on commit 016463a

Please sign in to comment.