Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: [Question] Strange behavior when overwrite a file over SFTP

You cannot rename a file to a name of an already existing file. You have to first remove the existing file.
hgtodorov

[Question] Strange behavior when overwrite a file over SFTP

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?


Thanks!