Topic "File deleted even exception has been thrown."

Author Message
rke002
[View user's profile]

Joined: 2012-12-19
Posts: 9
A question... if i upload file and upload itself throwing exception, is it a feature that the file will be deleted even after exception

Code:

using (var session = new Session())
{
    this.ConfigureSession(session);
    this.GetErrors(session.PutFiles(source, destination, true));
    -->exception thrown in PutFiles because of bad destination path.
}
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
What is the exception? Can you provide a session log file (Session.SessionLogPath)?
_________________
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