Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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

Guest

Re: $session.GetFiles How to avoid overwrite destination

Perfect THNX!
martin

Re: $session.GetFiles How to avoid overwrite destination

It seems that you want to synchronize. So use Session.SynchronizeDirectories.
https://winscp.net/eng/docs/library_session_synchronizedirectories

If you really want to transfer non-existing files only (even if the destination have older version of the file), set criteria to SynchronizationCriteria.None.
edoardo@proattiva.org

$session.GetFiles How to avoid overwrite destination

I'm scripting an FTP transfer via PowerShell script with $session.GetFiles: how to avoid overwrite destination?
In TransferOptions I can't see it..

Thanks