Determing folder size using c# (perfomance)

  • Thread starter Thread starter Alhambra Eidos Desarrollo
  • Start date Start date
A

Alhambra Eidos Desarrollo

Hi all

how can I get folder size with high performance ??

Do I need use recursive method for all files-subfolders within root folder
?? Anyway for do it ?? Perhaps using API Windows ??

Thanks in advance ?
 
Any sample that I found using recursive method. Another solution for high
performance ?

Thanks in advance
 
If there was an API to show the value immediately I suspect that
right-clicking c:\Windows and then going to properties would be much quicker
to show the folder size.
 
Alhambra said:
Any sample that I found using recursive method. Another solution for
high performance ?

Any correct solution will use recursion, however the naive solution using
recursion and .NET functions is not correct because it doesn't include the
sizes of alternate data streams and indexes.
 
Back
Top