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