Topic "Source file overwritten with blank after transfer"

Author Message
ajorg
[View user's profile]

Joined: 2013-11-13
Posts: 1
I am using the WinSCP .NET assembly to transfer a file via SFTP to an off-site server. My application creates an XML file locally, and then uses the WinSCP .NET assembly to perform the transfer. On some occasions (it has happened 3 of about 10 times), after the file is successfully transferred, the local source file is overwritten, and while it retains the XML schema, it has no records. The destination file remains correct.

The odd thing is that there is no code that manipulates the source file. Once the file has been transferred, the application code stops. Something else is overwriting this file, and I cannot figure out what it is. Any ideas?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24994
Location: Prague, Czechia
WinSCP never overwrites source file (it can delete it, if ask to). If you need more help, please share your code or even better a log file for upload, when the problem happened.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License