Reputation: 377
I'm using Microsoft Sync Framework 2.0 in trying to implement a file sync app. Basically I need to know what files are deleted in a directory and decide whether or not that deletion event will be applied to directories included in the sync.
For example: Directory A is the source Directory B is the destination
Both directories contain the same files.
If a file in Directory A is deleted, the same file must be deleted in Directory B However if a file in directory B is deleted, it will not be synced to Directory A but will be recreated because of a sync that gets that file from Directory A. (Basically, undoing the delete that has happened in Directory B)
Please help
Upvotes: 2
Views: 630
Reputation: 7860
try subscribing to the ApplyingChange event, skip the delete change and recreate the file from there.
Upvotes: 1