1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2025-03-23 00:00:04 +01:00
restic/internal/backend/local/local_windows.go

19 lines
422 B
Go
Raw Permalink Normal View History

package local
import (
"os"
)
// Can't explicitly flush directory changes on Windows.
2025-02-28 19:52:43 +00:00
func fsyncDir(_ string) error { return nil }
// Windows is not macOS.
2025-02-28 19:52:43 +00:00
func isMacENOTTY(_ 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.
2025-02-28 19:52:43 +00:00
func setFileReadonly(_ string, _ os.FileMode) error {
return nil
}