private void AppendTree(FileSystemNode node, string path) { TryGetDirectories(path)?.Where(d => !node.ChildExists(d)).ToList() .ForEach(d => node.AddChild(Path.GetFileName(d), d)); }
private void Fill(FileSystemNode node, string path) { TryGetDirectories(path)?.ToList().ForEach(d => node.AddChild(Path.GetFileName(d), d)); }