Listing subdirectories 3 levels deep using LINQ C#
- by paradox
I'd like to know if there is a better alternative to my following code (preferably using LINQ)
#region List and filter directories to only 3 levels deep
// List all subdirectories within main directory
string[] folders = Directory.GetDirectories(@"C:\pdftest\", "*" ,SearchOption.AllDirectories);
…