Calling SyncronizeDirectories in VBScript:
Set transferResult = session.SynchronizeDirectories(SynchronizationMode_Remote, cLocal, cRemoto, True, True, SynchronizationCriteria_Either, transferOptions)
results in a runtime error:
the object doesn´t accept this property or method: 'session.SynchronizeDirectories'
other methods (e.g. PutFiles) work properly.
Debug log says:
[2014-03-03 10:26:19.599Z] [0001] Session.System.Reflection.IReflect.InvokeMember entering
[2014-03-03 10:26:19.599Z] [0001] Name [SynchronizeDirectories]
[2014-03-03 10:26:19.599Z] [0001] Target [WinSCP.Session]
[2014-03-03 10:26:19.599Z] [0001] Args [7] [null]
[2014-03-03 10:26:19.599Z] [0001] Arg [0] [1] [null]
[2014-03-03 10:26:19.599Z] [0001] Arg [1] [F:\ftproot\portal] [null]
[2014-03-03 10:26:19.599Z] [0001] Arg [2] [/opendata/] [null]
[2014-03-03 10:26:19.599Z] [0001] Arg [3] [True] [null]
[2014-03-03 10:26:19.599Z] [0001] Arg [4] [True] [null]
[2014-03-03 10:26:19.599Z] [0001] Arg [5] [3] [null]
[2014-03-03 10:26:19.599Z] [0001] Arg [6] [WinSCP.TransferOptions] [null]
[2014-03-03 10:26:19.599Z] [0001] Culture [en-US]
[2014-03-03 10:26:19.599Z] [0001] Invoking
[2014-03-03 10:26:19.599Z] [0001] Error [System.MissingMethodException: No se puede encontrar el método 'WinSCP.Session.SynchronizeDirectories'.
en System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
en WinSCP.Session.System.Reflection.IReflect.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters)]
[2014-03-03 10:26:19.599Z] [0001] Session.System.Reflection.IReflect.InvokeMember leaving
The error message is in spanish, translated:
"No se puede encontrar el método" => "method can't be found"
I'm using version 5.1.4:
[2014-03-03 10:26:19.286Z] [0001] Version of C:\tools\portable\WinSCP_514\WinSCP.exe is 5.1.4.3020, product WinSCP version is 5.1.4.0
Thanks in advance.