Beispiel #1
0
 protected override void OnClose(bool cancel)
 {
     if (!cancel)
     {
         _watcher.Dirs = WatchDirs.Select(i => i.FullPath).ToList();
         _watcher.Scan(syncAfterScan: true);
     }
 }
Beispiel #2
0
        private void AddToWatch(FSObject dir)
        {
            if (!dir.IsDir())
            {
                return;
            }

            if (IsWatching(dir))
            {
                return;
            }

            WatchDirs.Add(dir);
        }
Beispiel #3
0
 private bool IsWatching(FSObject dir)
 {
     return(WatchDirs.Any(i => i.FullPath == dir.FullPath));
 }