public void IgnoreEventAdd(SyncEventIgnoreItem SEII) { lock (FSIgnoreEventListLock) { FSIgnoreEventList.Add(SEII); } }
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"); } } }
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"); } } }