Files
narratio/internal/fileops/rename_noreplace_other.go

22 lines
450 B
Go
Raw Normal View History

//go:build !linux && !darwin && !windows
2026-08-09 23:37:02 +00:00
package fileops
import (
"fmt"
"os"
"runtime"
)
func checkAtomicDirectoryPromotionSupport() error {
return fmt.Errorf("%w on %s", ErrAtomicDirectoryPromotionUnsupported, runtime.GOOS)
}
2026-08-09 23:37:02 +00:00
func renameDirectoryNoReplace(_, _ string) error {
return checkAtomicDirectoryPromotionSupport()
2026-08-09 23:37:02 +00:00
}
func renameDirectoryNoReplaceAt(_ *os.File, _, _ string) error {
return checkAtomicDirectoryPromotionSupport()
}