System.StackOverflow Exception while Parsing through Directory Structure
问题 What im trying to achieve is,Get the list of all files in a specific drive or Folder Structure by parsing through the Files.I'm also trying to handle the Unauthorized Exception which occures in case of protected files.The Code works fine in most drives and folders but in some cases like the Windows Drive(C:),A System.StackOverflow EXception is thrown.What could be the problem?Is there a better way to do it? static void WalkDirectoryTree(System.IO.DirectoryInfo root) { System.IO.FileInfo[]