Post a reply

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: the true here does that mean it delete the source file?

torix wrote:

Yes, it will delete the file (false=copy|true=move).


Correct.

As per the documentation
https://winscp.net/eng/docs/library_session_putfiles
When set to true, deletes source local file(s) after transfer. Defaults to false.
torix

Re: the true here does that mean it delete the source file?

Philky001 wrote:

transferResult = session.PutFiles(file, FileToUpload, true, transferOptions);


Yes, it will delete the file (false=copy|true=move).
Philky001

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

transferResult = session.PutFiles(file, FileToUpload, true, transferOptions);