private void NotifyOnDirectory(Config config, string currentDir) { if (config.ScanType == ScanType.FilesOnly) return; var args = new DirectoryVisitEventArgs(currentDir); Notify(config, () => config.Handlers.HandleDirectory(args)); mPruned = args.Prune; }
public void HandleDirectory(DirectoryVisitEventArgs args) { OnDirectory.RaiseEvent(mConfig, args); }
private static void ReviewDirectory(object sender, DirectoryVisitEventArgs args) { if ((Directory.GetDirectories(args.Path).Length == 0) && (Directory.GetFiles(args.Path).Length == 0)) Console.WriteLine(args.Path); }
public void TestDefaults() { var args = new DirectoryVisitEventArgs("apath"); Assert.That(args.Path, Is.EqualTo("apath")); Assert.That(args.Prune, Is.False); }