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 }