Synchronize files and folders existing in both remote and local directories only

Advertisement

kjc
Joined:
Posts:
3

Synchronize files and folders existing in both remote and local directories only

I am trying to synchronize a remote and a local directory, only updating files and folders existing in both remote and local using the .NET/C# library.

In the documentation it says:
"Files in the source directory not present in the target directory are by default transferred as well (disable this using the option Existing files only)".

I am not able to find the option Existing files only.

How is this done in code? Do you need to use the session.CompareDirectories method and loop through each ComparisonDifference and do a deletion for each of them, or are there better alternatives?

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum