how to create a collection from list of strings that represents a directory structure in C# or VB
问题 First, I did check this post but it is in Python, first, and second it appears to be actually making the directories, which I cannot do in this scenario. Second, these are not directories that exist, nor can I create them. I have an input in C# like this: List<string> filePaths = new List<string>(); filePaths.Add(@"ProgramDir\InstallDir\Module1\mod1pack1.exe"); filePaths.Add(@"ProgramDir\InstallDir\Module1\mod1pack2.exe"); filePaths.Add(@"ProgramDir\InstallDir\Module2\mod2pack1.exe");