Topic "the true here does that mean it delete the source file?"

Author Message
Philky001
[View user's profile]
Donor
Joined: 2015-11-24
Posts: 20
transferResult = session.PutFiles(file, FileToUpload, true, transferOptions);
torix
[View user's profile]

Joined: 2015-11-11
Posts: 16
Location: Norway
Philky001 wrote:
transferResult = session.PutFiles(file, FileToUpload, true, transferOptions);


Yes, it will delete the file (false=copy|true=move).
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
torix wrote:
Yes, it will delete the file (false=copy|true=move).


Correct.

As per the documentation
http://winscp.net/eng/docs/library_session_putfiles
Quote:
When set to true, deletes source local file(s) after transfer. Defaults to false.
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