How can I modify this code to also list auxiliary directories?
var fqFilenames= new List<String>(System.IO.Directory.GetFiles(sMappedPath)); var filenames= fqFilenames.ConvertAll((s) => { return s.Replace(sMappedPath+"\\", ""); }); FileListView.DataSource = filenames;
Can you just use Directory.GetFiles(string, string, SearchOption) ? If not, explain what you need, what does not apply.
Directory.GetFiles(string, string, SearchOption)
For instance:
Directory.GetFiles(sMappedPath, "*", SearchOption.AllDirectories)
Try to find Directory.GetDirectories or the equivalent of DirectoryInfo. The example on the linked page shows the recursive movements of subdirectories