2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-22 21:05:10 +00:00
restic/internal/backend/local/local_windows.go
2022-11-11 22:51:51 +01:00

19 lines
429 B
Go

package local
import (
"os"
)
// Can't explicitly flush directory changes on Windows.
func fsyncDir(dir string) error { return nil }
// Windows is not macOS.
func isMacENOTTY(err error) bool { return false }
// 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
}