FileSyncProvider : List items excluded due to FileSyncScopeFilter RRS feed

  • Question



    I'm implementing an file synchronization system base on FileSyncProvider (v2).

    I excluded files according to their extension (*.mp3 for instance) using FileSyncScopeFilter (FileNameExcludes)

    I would like to retrieve the list of excluded files.

    As files should be exceluded during change detection stage, I implemented the event SkippedFileDetect in FileSyncProvider, but the event is not triggered.

    Is my supposition a bad one ?

    Is there a way to get the excluded files from file sync framework ?

    Or do I need to implement a full search in folder to sync, and check which files should be excluded ?


    Best regards,



    Wednesday, March 31, 2010 12:38 PM


All replies

  • afaik, static filtered files are excluded in the enumeration.

    The SkippedFileDetect is triggered by reasons as stated here http://msdn.microsoft.com/en-us/library/microsoft.synchronization.files.skipreason(SQL.105).aspx

    you may want to listen to the ApplyingChange event and set SkipChange=true for the files you want to skip and at the same time grab the filenames of the files you're skipping. 

    Wednesday, March 31, 2010 12:47 PM
  • Thank you for answer.

    I will check with my users if they realy want the skipped files during synchronization, or if I could only provide them a list when they need i.T


    Best regards,


    Wednesday, March 31, 2010 1:56 PM