How to detect and apply the deleted files to knowledge in file sync application? RRS feed

  • Question

  • Hi, everybody.

    I am developing the file sync application.

    I define and use the custom sync provider, not using FileSyncProvider. The purpose of this application is to sync the files on client with the files on server.

    Sync direction is download only.

    Now application works well except one thing.

    problem is that:

    When deleting the files on client, application doesn't download them from server again.

    But, when deleting or modifying the files on server, client files also are deleted or modified.

    In my app, syn flow is following as:

                     Local                                             Dest (Server)

    1.    GetSyncBatchParameters                 GetChangeBatch()

    2.    ProcessChangeBatch()                     LoacalChangeData

     .....                ....                                 ....

    GetChangeBatch() function detect the changes of the files  on the server, so changes on server is applied to client correctly.(file modify and file delete)

    But I don't know how and where to detect the changes on client.

    Would you like to help me at this point?

    I am trying to implement this function in GetSyncBatchParameter on local, but I don't know how to modify the local knowledge for deleted files.

    I am not sure whether this way (Changing the knowledge) is right or wrong.

    Do you think this function can be implemented on ProcessChangeBatch() function? If yes, how can I do that?


    Thanks for your attention. Looking forward to hearing your opinions.

    Best Regards

    Tuesday, January 4, 2011 6:31 PM