Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

kjc

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?