SyncrhonizeDirectories.Removals
Hello, I'm using this piece of code
Dim synchronizationResult As SynchronizationResult
synchronizationResult = MySession.SynchronizeDirectories(SynchronizationMode.Remote, local, remote, True, True)
For n = 0 To synchronizationResult.Removals.Count - 1
l.WriteLine("Rimosso " + synchronizationResult.Removals(n).FileName)
Next
For n = 0 To synchronizationResult.Failures.Count - 1
l.WriteLine("Errore " + synchronizationResult.Failures(n).Message)
Next
My intention is to log the files that were been removed due exists in remote and not in local. The list contains the files removed and everything is ok.
If I made the reverse synchronization (SynchronizationMode.Local) the files removed in local due are not present in remote, are not listed in .Removals list. The list is empty every time.
Am I mistake something or is there another metodh to retrive the removed files in this case?
Thanks.
Dim synchronizationResult As SynchronizationResult
synchronizationResult = MySession.SynchronizeDirectories(SynchronizationMode.Remote, local, remote, True, True)
For n = 0 To synchronizationResult.Removals.Count - 1
l.WriteLine("Rimosso " + synchronizationResult.Removals(n).FileName)
Next
For n = 0 To synchronizationResult.Failures.Count - 1
l.WriteLine("Errore " + synchronizationResult.Failures(n).Message)
Next
My intention is to log the files that were been removed due exists in remote and not in local. The list contains the files removed and everything is ok.
If I made the reverse synchronization (SynchronizationMode.Local) the files removed in local due are not present in remote, are not listed in .Removals list. The list is empty every time.
Am I mistake something or is there another metodh to retrive the removed files in this case?
Thanks.