List and store files in Java recursively