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
  • 147,647
  • 23
  • 218
  • 272
Marcin1199
  • 83
  • 1
  • 11
  • 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
  • Does this answer your question? [Is there a faster way to scan through a directory recursively in .NET?](https://stackoverflow.com/questions/724148/is-there-a-faster-way-to-scan-through-a-directory-recursively-in-net) – HackSlash Sep 02 '22 at 14:59

0 Answers0