private File [ ] getFilesInDir ( File dir ) { return dir . listFiles ( new FileFilter ( ) { public boolean accept ( File file ) { return file . isFile ( ) && ! file . getName ( ) . equals ( ATTEMPTS_JSON_FILE_NAME ) ; } } ) ; }
Gets an array containing all of the files in the given directory .