Conclusion
To start of the chain reaction of these functions, all one needs is the starting path, which in this case will be the hard drive to scan (“C:”, “D:”, etc). What if you don’t know what drives there are?
Luckily for us, I wrote out a simple routine to get all the available hard drives and let the user pick the one to map out.
Once you run it, you will also notice mapping out the folder structure is extremely slow compared to Windows Explorer. This is simply because Windows Explorer is by no means scanning your entire hard drive every time you open it. It keeps tables already written, and updates and access them as you interact with Windows. That is beyond the scope of this article.
The point of this article was to work a bit with recursion to write out two commonly searched for functions.