Fix renaming an entry/folder to an invalid path still attempting the rename on the server

This commit is contained in:
2024-10-18 12:34:17 -04:00
parent 7b4241b2cd
commit 1fb2834844
+1
View File
@@ -88,6 +88,7 @@ func RenameLocal(oldLocationIncomplete, newLocationIncomplete string, verifyOldL
err := os.Rename(oldLocation, newLocation)
if err != nil {
fmt.Println(core.AnsiError + "Failed to rename - Does the target containing directory exist?" + core.AnsiReset)
os.Exit(core.ErrorTargetNotFound)
}
// do not exit program, as this function is used as part of RenameRemoteFromClient