Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

Can this C# example of iterating through the directory tree wear out the hard drive?

$
0
0

Hello

I've had success with using C# to iterate through a directory tree with the second example on this page:

http://msdn.microsoft.com/en-us/library/bb513869.aspx

This was after I put in an if statement to check for reparse points. When I ran the code it took about 12 minutes and the hard drive light on my laptop was almost continuously flashing. Should I be worried about it wearing out the hard drive more quickly with constant use (like a few times every day for example)? I've got the old style platter hard drive, would it be a problem with the new type of hard drives?

I'm thinking of adding code to have it interact with a database with each loop. It's finding a massive amount of files just in my Documents folder, with all the sub folders.

Thanks.



Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>