Make atomic file replacement crash durable
This commit is contained in:
@@ -2,6 +2,11 @@
|
||||
|
||||
package fileops
|
||||
|
||||
func syncDirectory(string) error {
|
||||
return checkAtomicDirectoryPromotionSupport()
|
||||
import (
|
||||
"fmt"
|
||||
"runtime"
|
||||
)
|
||||
|
||||
func syncDirectory(path string) error {
|
||||
return fmt.Errorf("%w for %q on %s", ErrDirectorySyncUnsupported, path, runtime.GOOS)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user