Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static void QueueFolders(object s, bool myBool)
- {
- if(myBool)
- myBool = false;
- List<string> tempList = new List<string>();
- try
- {
- tempList.AddRange(Directory.GetDirectories((string)s));
- folderListStatic.Enqueue((string)s);
- }
- catch (System.Exception excpt)
- {
- //Console.WriteLine("ListFolders Error: {0}", excpt.Message);
- }
- foreach (string f in tempList)
- {
- QueueFolders(f);
- }
- if(myBool)
- {
- //set resetevent
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement