Need C# Help to create a "Push Button" Subfolder Heirarchy with nested Subfolders
Posted on 2009-03-30
I need to make a file system that goes something like this:
Folder Level 1.) Top Folder (Brands - ex. WidgetCoWidgets, HelliCoWhirrleyGigs, etc.)
Folder Level 2.) Second Level Folder (BlueWidgets, GreyWidgets, RedWidgets)
Folder Level 3.) Are all of the Product SKUs (BW001, BWABC, BW3456D)
<!-- I have done the first three levels so far -- >
Here's where I need help ...
For each level 3 folder, I need to add 3 department styled folders (like, Sales, Marketing, Finance)
Then, within each fourth level folder I need to add another array of folders like (ProductBrochures,PriceLists,MarComMaterials). I am not sure how to script the creation of the level four and five folders. Is there some sort of silver bullet "For each subfolder in path X, add level 3 folder, then add level four folder? The problem is, there is no serialization at the level 3 level. The product names are largely random. I would appreciate any help you could gibe to get me a simple ASP.NET solution that uses System.IO to manipulate all of this ...