Traversing the file system is one of the common tasks required in applications. Search the web for examples and you can find plenty of examples of how to go about it.
Download source code
(you will need to provide an email address)
One of the most popular is to work through the file system using recursive calls.
This tutorial shows an example of walking through the file system using the recursive call technique.