0

I want to enumerate Directory to get Directories. I know the FastDirectoryEnumerator class available on codeproject but with this I can enumerate files only. I need enumeration through network and with Directory.GetDirectories() execution time is horrible.

CodeCaster
  • 139,522
  • 20
  • 204
  • 252
Marcin1199
  • 73
  • 1
  • 10
  • 1
    What about parallel ? Check this answer: http://stackoverflow.com/questions/11271094/get-directories-with-parallel-foreach – MajkeloDev Jul 02 '15 at 10:15
  • 3
    Did you try searching? I/O through .NET over SMB is horribly slow because of excessive permission checking. See for example http://stackoverflow.com/questions/724148/is-there-a-faster-way-to-scan-through-a-directory-recursively-in-net, http://stackoverflow.com/questions/26321366/fastest-way-to-get-directory-data-in-net – CodeCaster Jul 02 '15 at 10:17

0 Answers0