Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.1k views
in .NET FTP by (1.8k points)
Is it possible to get the .Synchronize (non-async) result describing the outcome of the syncing?
FtpSyncEventArgs would be the most logical I guess, but this can only be checked in the .Synchronized event if I'm not mistaking.

I would like to implement a structure that syncs and retries on failure x times.
When doing it the event way, I would need to have a counter on a global scope.
Seeing that my object has multiple connections, I would also need a lookup (Dictionary<ExFtpConnection, int>?) for the lookup.

I think there is a better way that I'm not seeing.

1 Answer

0 votes
by (161k points)
Currently there is no result returned. If an exception is thrown, the sync failed.

If you retry, it will continue on, as files that successfully transferred will now be in sync.

Categories

...