Re: SynchronizationMode - PowerShell
Just use$True
for theremoveFiles
parameter (4th) ofSession.SynchronizeDirectories
:
$session.SynchronizeDirectories(
[WinSCP.SynchronizationMode]::Remote, $localPath, $remotePath, $True)
See https://winscp.net/eng/docs/library_session_synchronizedirectories
Thank you for spending the time to reply. This worked. It's also helped me understand the documentation page you linked a lot more. Didn't clock the parameters were relative to that part of the code. I'm pretty new! :)