12 lines
276 B
Go
12 lines
276 B
Go
//go:build linux
|
|
|
|
package fileops
|
|
|
|
import "golang.org/x/sys/unix"
|
|
|
|
func checkAtomicDirectoryPromotionSupport() error { return nil }
|
|
|
|
func renameDirectoryNoReplace(src, dst string) error {
|
|
return unix.Renameat2(unix.AT_FDCWD, src, unix.AT_FDCWD, dst, unix.RENAME_NOREPLACE)
|
|
}
|