Recursively traversing files and folders using Java File API