private void AddSubDirectoriesToListOfDirectoriesToBeProcessed(string currentDir, Stack <string> directoriesToBeProcessed) { string[] subDirs = _iOHelper.GetSubDirectories(currentDir); foreach (string dir in subDirs) { directoriesToBeProcessed.Push(dir); } }