Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.65 KB | None | 0 0
  1.  private static void QueueFolders(object s, bool myBool)
  2.         {
  3.         if(myBool)
  4.         myBool = false;
  5.  
  6.             List<string> tempList = new List<string>();
  7.             try
  8.             {
  9.                 tempList.AddRange(Directory.GetDirectories((string)s));
  10.  
  11.                 folderListStatic.Enqueue((string)s);
  12.             }
  13.             catch (System.Exception excpt)
  14.             {
  15.                 //Console.WriteLine("ListFolders Error: {0}", excpt.Message);
  16.             }
  17.             foreach (string f in tempList)
  18.             {
  19.                 QueueFolders(f);
  20.             }
  21.  
  22.         if(myBool)
  23.         {
  24.         //set resetevent
  25.         }
  26.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement