Re: Synchronize local via .NET assembly produces "Nothing to synchronize"
Please post log both from .NET assembly and working log from the script.
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
synchronize local C:\Automation\Sync /Automation/Sync/ -filemask="|*"
$transferOptions = New-Object WinSCP.TransferOptions
$transferOptions.TransferMode = [WinSCP.TransferMode]::Binary
$transferOptions.FileMask = "|*"
$synchronizationResult = $session.SynchronizeDirectories(
[WinSCP.SynchronizationMode]::Local, "C:\Automation\Sync", "/Automation/Sync/", $False, $False, [WinSCP.SynchronizationCriteria]::None, $transferOptions)
> 2022-05-13 09:17:32.138 Script: synchronize local -nopermissions -preservetime -transfer="binary" -filemask="|*" -criteria="none" -- "C:\Automation\Sync" "/Automation/Sync/"
--
), the directory sync works as expected.