public void Visit(FileSystemTree tree) { this.current.AddRange(tree.Path.Backslash().Split('\\')); if (this.parts.Length <= this.current.Count) { if (this.StartsWith(this.current, this.parts) == true) { foreach (FileSystemNode node in tree) { node.Accept(this); } } } this.current.Clear(); }
public void Register(FileSystemTree tree) { this.trees.Add(tree); }