2015-08-16 10:39:38 +00:00
|
|
|
package local
|
|
|
|
|
|
|
|
import (
|
|
|
|
"os"
|
|
|
|
)
|
|
|
|
|
2021-07-09 15:11:39 +00:00
|
|
|
// Can't explicitly flush directory changes on Windows.
|
|
|
|
func fsyncDir(dir string) error { return nil }
|
|
|
|
|
2015-08-16 10:39:38 +00: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 16:46:19 +00:00
|
|
|
func setFileReadonly(f string, mode os.FileMode) error {
|
2015-08-16 10:39:38 +00:00
|
|
|
return nil
|
|
|
|
}
|