public static List < File > listFilesRecursively ( File dir ) { List < File > fileList = newArrayList ( ) ; addFilesRecursively ( dir , fileList ) ; return fileList ; }
Creates a List of all the files in a directory and it s subdirectories .