Re: Session.SynchronizeDirectories Method Powershell not removing remote files
Where in PowerShell would I add removeFiles?
The PowerShell example you have referred to yourself passes a
$False
value to the removeFiles
argument:
https://winscp.net/eng/docs/library_session_synchronizedirectories#powershell
$synchronizationResult = $session.SynchronizeDirectories(
[WinSCP.SynchronizationMode]::Remote, "d:\www",
"/home/martin/public_html", $False)
I assume you just want to replace it with
$True
.