2015-08-16 06:39:38 -04:00
|
|
|
package local
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"os"
|
|
|
|
|
)
|
|
|
|
|
|
2021-07-09 11:11:39 -04:00
|
|
|
// Can't explicitly flush directory changes on Windows.
|
|
|
|
|
func fsyncDir(dir string) error { return nil }
|
|
|
|
|
|
2022-11-11 08:53:42 -05:00
|
|
|
// Windows is not macOS.
|
|
|
|
|
func isMacENOTTY(err error) bool { return false }
|
|
|
|
|
|
2015-08-16 06:39:38 -04:00
|
|
|
// 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.
|
2020-10-06 12:46:19 -04:00
|
|
|
func setFileReadonly(f string, mode os.FileMode) error {
|
2015-08-16 06:39:38 -04:00
|
|
|
return nil
|
|
|
|
|
}
|