You cannot rename a file to a name of an already existing file. You have to first remove the existing file.
WinSCP version: 5.7.6 (build 5874)
Let's assume that we have a file called file.txt.
Now, if we try to upload a file with the same name (file.txt) in the same directory as the original one over SFTP, first the file is uploaded with
following suffix: .filepart which is OK. But then the original file is delete and the .filepart file is renamed (basically the suffix is removed).
My question is this an expected behavior?
Shouldn't be just to rename the .filepart file?