From 016463a9144b0a53cf031db7931e46e789f5a638 Mon Sep 17 00:00:00 2001 From: Alexander Brand Date: Tue, 31 May 2016 18:39:53 -0400 Subject: [PATCH] Use os.Chmod instead of file.Chmod for compatibility with Windows --- save.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/save.go b/save.go index 1ceff8d..2bcd3e6 100644 --- a/save.go +++ b/save.go @@ -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 }