So I am writing a program that will scan for duplicate files on a computer as the programs that I've seen are really slow, and/or memory hogs, but I was running into a PathTooLongException
when I tried to the whole drive. After reading PathTooLongException in C# code I became curious about the following two questions.
Would it hurt my performance if I were to switch my current directory every time I changed levels?
Is there a better way to get the directory structure of all the files (perhaps by calling something like tree.exe and then parsing that)?
See this Library!
.NET Base Class Libraries : Long Path
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With