remove rename2 entirely, avoids the risk of moving data (#19058)

This commit is contained in:
Harshavardhana
2024-02-14 17:09:38 -08:00
committed by GitHub
parent b5791e6f28
commit 7e4a6b4bcd
5 changed files with 4 additions and 25 deletions

View File

@@ -24,11 +24,6 @@ import (
"os"
)
// Rename2 is not implemented in a non linux environment
func Rename2(src, dst string) (err error) {
return errSkipFile
}
// RenameSys is low level call in case of non-Linux this just uses os.Rename()
func RenameSys(src, dst string) (err error) {
return os.Rename(src, dst)