[Question] Strange behavior when overwrite a file over SFTP

Advertisement

hgtodorov
Joined:
Posts:
1

[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!

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

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.

Reply with quote

Advertisement

You can post new topics in this forum