I am writing a little program that creates an index of all files on my directories. It basically iterates over each file on the disk and stores it into a searchable database
I haven't checked the implementation or the performance, but commons-io has an listFiles() method. It might be worth a try.