19 lines
420 B
Go
19 lines
420 B
Go
//go:build windows
|
|
|
|
package fileops
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
)
|
|
|
|
func checkAtomicDirectoryPromotionSupport() error {
|
|
return fmt.Errorf("%w on windows", ErrAtomicDirectoryPromotionUnsupported)
|
|
}
|
|
|
|
func renameDirectoryNoReplace(src, dst string) error { return checkAtomicDirectoryPromotionSupport() }
|
|
|
|
func renameDirectoryNoReplaceAt(parent *os.File, src, dst string) error {
|
|
return checkAtomicDirectoryPromotionSupport()
|
|
}
|