here is my code:
private static void TreeScan(string sDir) { foreach (string d in Directory.GetDirectories(sDir)) { forea
Don't reinvent the wheel, use the overload of GetFiles that allows you to specify that it searches subdirectories.
GetFiles
string[] files = Directory.GetFiles(path, searchPattern, SearchOption.AllDirectories);