Example #1
0
 public void IgnoreEventAdd(SyncEventIgnoreItem SEII)
 {
     lock (FSIgnoreEventListLock)
     {
         FSIgnoreEventList.Add(SEII);
     }
 }
Example #2
0
 private void FS_DirRenamed(object sender, RenamedEventArgs e)
 {
     lock (FSIgnoreEventListLock)
     {
         SyncEventIgnoreItem SEII = FSIgnoreEventList.Find(x => (x.Event & SyncEventEnum.LocalRename) > 0 && x.NewOrCurrentFilePathFull.Equals(e.FullPath));
         if (SEII == null)
         {
             OnEvent(new SyncEventItem(SyncEventEnum.LocalRename, e.FullPath, e.OldFullPath, true, false));
         }
         else
         {
             FSIgnoreEventList.Remove(SEII);
             OnLog("Event Ignored");
         }
     }
 }
Example #3
0
 private void FS_DirDeleted(object sender, FileSystemEventArgs e)
 {
     lock (FSIgnoreEventListLock)
     {
         SyncEventIgnoreItem SEII = FSIgnoreEventList.Find(x => (x.Event & SyncEventEnum.LocalDelete) > 0 && x.NewOrCurrentFilePathFull.Equals(e.FullPath));
         if (SEII == null)
         {
             var TempVirtualFolder = _RootVirtualFolder.FindFolderBasedOnPath(GetRelativeFilePath(e.FullPath));
             if (TempVirtualFolder != null)
             {
                 OnEvent(new SyncEventItem(SyncEventEnum.LocalDelete, TempVirtualFolder.FolderId, true, false));
             }
         }
         else
         {
             FSIgnoreEventList.Remove(SEII);
             OnLog("Event Ignored");
         }
     }
 }