/// <summary> /// Load all directories found into directory listings. /// </summary> /// <param name="startingDir"></param> /// <param name="dirsFound"></param> /// <returns></returns> public static string[] GetAllDirs(String startingDir, string[] dirsFound) { return(startingDir != null?Directory.GetFiles(startingDir).Length > 0 && sDirs.Count() == 0 ? sDirs + startingDir == true?eDir(Directory.GetDirectories(startingDir)) : null : Directory.GetDirectories(startingDir).Length > 0 ? GetAllDirs(null, dirsFound.Concat(Directory.GetDirectories(startingDir)).ToArray()) : null : eDir(dirsFound)); }