public NodeTree(IList<ITree<IFileableCmisObject>> trees, IFolder folder, int depth) {
this.Path = folder.Path;
this.Name = folder.Name;
this.Finished = !(depth == 0);
if (trees != null) {
foreach (ITree<IFileableCmisObject> tree in trees) {
Folder f = tree.Item as Folder;
if (f != null) {
this.Children.Add(new NodeTree(tree.Children, f, depth - 1));
}
}
}
}
}