mirror of
https://github.com/project-zot/zot.git
synced 2026-06-18 05:28:07 +08:00
9991821295
See https://github.com/project-zot/zot/issues/3924 Signed-off-by: Andrei Aaron <andreifdaaron@gmail.com>
12 lines
322 B
Go
12 lines
322 B
Go
//go:build !windows
|
|
|
|
package local
|
|
|
|
import "os"
|
|
|
|
// renameReplace moves src to dst, replacing dst if it already exists (POSIX rename).
|
|
// commit is ignored on Unix; durability for committed writers is handled via fsync in fileWriter.Close.
|
|
func renameReplace(src, dst string, _ bool) error {
|
|
return os.Rename(src, dst)
|
|
}
|