Пример #1
0
        private void OnFileEvent(object sender, FileSystemEventArgs e)
        {
            string fullPath = e.FullPath;

            // Exclude files added to Recycle Bin
            // If isn't working, refactor using this: https://www.dreamincode.net/forums/topic/164491-working-with-the-windows-recycle-bin-with-c%23/
            if (!fullPath.Contains("$Recycle.Bin") && !fullPath.Contains("$RECYCLE.BIN"))
            {
                if (_extensionCtrl.IsExtensionSupported(fullPath))
                {
                    _monitor.AddQueueItem(FileEventArgs.Create(e, _directoryPath));
                }
            }
        }
Пример #2
0
 private void OnFileEvent(object sender, FileSystemEventArgs e)
 {
     _monitor.AddQueueItem(FileEventArgs.Create(e, _folder));
 }
Пример #3
0
 private void OnRenameEvent(object sender, RenamedEventArgs e)
 {
     _monitor.AddQueueItem(FileEventArgs.Create(e, _folder));
 }