github.com/mckael/restic@v0.8.3/internal/backend/local/local_unix.go (about) 1 // +build !windows 2 3 package local 4 5 import ( 6 "os" 7 8 "github.com/restic/restic/internal/fs" 9 ) 10 11 // set file to readonly 12 func setNewFileMode(f string, mode os.FileMode) error { 13 return fs.Chmod(f, mode) 14 }