c# Build a directory tree
问题 I am trying to build a directory tree in my application. I am using this Example from Ext.NET . How I can search a given path for directories and sub-directories in order to build this tree? Here is the code given in the example to build the tree from nodes: protected void NodeLoad(object sender, NodeLoadEventArgs e) { if (!string.IsNullOrEmpty(e.NodeID)) { for (int i = 1; i < 6; i++) { AsyncTreeNode asyncNode = new AsyncTreeNode(); asyncNode.Text = e.NodeID + i; asyncNode.NodeID = e.NodeID +