On Thu, 2014-04-24 at 18:35 +0200, Emiliano Heyns wrote:
> How are deletes in the file backend distinguished from non-existence
> for the purpose of sync?

Syncing is not stateless. The backend maintains a list of "file name" +
"last modified timestamp" pairs and compares that list against the
current information to determine:
      * new file: exist now, did not exist during last sync
      * removed file: existed in last sync, gone now
      * modified file: time stamp is different

If that meta information does not exist (anymore), then a slow sync is
necessary where all items are treated as new and the engine needs to
find pairs between local and remote side.

This logic is used by many backends, therefore it is part of the
SyncSource.h utility classes.

-- 
Best Regards, Patrick Ohly

The content of this message is my personal opinion only and although
I am an employee of Intel, the statements I make here in no way
represent Intel's position on the issue, nor am I authorized to speak
on behalf of Intel on this matter.



_______________________________________________
SyncEvolution mailing list
[email protected]
https://lists.syncevolution.org/mailman/listinfo/syncevolution

Reply via email to