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