22 lines
450 B
Go
22 lines
450 B
Go
//go:build !linux && !darwin && !windows
|
|
|
|
package fileops
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
"runtime"
|
|
)
|
|
|
|
func checkAtomicDirectoryPromotionSupport() error {
|
|
return fmt.Errorf("%w on %s", ErrAtomicDirectoryPromotionUnsupported, runtime.GOOS)
|
|
}
|
|
|
|
func renameDirectoryNoReplace(_, _ string) error {
|
|
return checkAtomicDirectoryPromotionSupport()
|
|
}
|
|
|
|
func renameDirectoryNoReplaceAt(_ *os.File, _, _ string) error {
|
|
return checkAtomicDirectoryPromotionSupport()
|
|
}
|