mirror of
https://github.com/samuelncui/yatm.git
synced 2026-11-08 12:26:33 +00:00
Unify file queries and Scan execution, retain indexed Identical results, improve Job and Preview workflows, and verify release packaging.
8 lines
195 B
Go
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)
|
|
}
|