code: 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);
              }
          });
      }
docs: Gets an array containing all of the files in the given directory.
  
  @param dir A directory.
  @return An array containing all of the files in the given directory.