mirror of
https://github.com/octoleo/restic.git
synced 2024-11-24 21:57:41 +00:00
f4282aa6fd
This is intended to prevent accidental modifications of data files. Marking the files as read-only was accidentally removed in #1258.
13 lines
249 B
Go
13 lines
249 B
Go
package local
|
|
|
|
import (
|
|
"os"
|
|
)
|
|
|
|
// We don't modify read-only on windows,
|
|
// since it will make us unable to delete the file,
|
|
// and this isn't common practice on this platform.
|
|
func setFileReadonly(f string, mode os.FileMode) error {
|
|
return nil
|
|
}
|