2015-08-16 10:39:38 +00:00
|
|
|
// +build !windows
|
|
|
|
|
|
|
|
package local
|
|
|
|
|
|
|
|
import (
|
|
|
|
"os"
|
2017-07-23 12:21:03 +00:00
|
|
|
|
|
|
|
"github.com/restic/restic/internal/fs"
|
2015-08-16 10:39:38 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// set file to readonly
|
2017-07-20 20:17:47 +00:00
|
|
|
func setNewFileMode(f string, mode os.FileMode) error {
|
|
|
|
return fs.Chmod(f, mode)
|
2015-08-16 10:39:38 +00:00
|
|
|
}
|