
We created this example of traversing the folder structure of a web site or virtual directory. Before you even look at it, there are a few notable limitations. The most important is that, rather than create a recursive function, we limited the scope to nesting two levels deep — both for the purposes of the example and to keep the code relatively short. We also assume that the starting point (defined by vDir) has at least one subfolder *or* one file. Finally, the majority of the formatting functions are buried away in treeviewFunctions.asp, and the code there is not as clean and pretty as it could be.
|