Files
yatm/internal/executor/fileops/rename_linux.go
T
Samuel Cui 4fef653b71 Prepare YATM v1.0.0-alpha.2
Unify file queries and Scan execution, retain indexed Identical results,
improve Job and Preview workflows, and verify release packaging.
2026-10-05 19:08:49 +08:00

8 lines
195 B
Go

package fileops
import "golang.org/x/sys/unix"
func renameNoReplace(source, target string) error {
return unix.Renameat2(unix.AT_FDCWD, source, unix.AT_FDCWD, target, unix.RENAME_NOREPLACE)
}