code: public static List<File> listFiles(File dir, FileFilter filter, boolean recursive){
  		List<File> list = new ArrayList<File>();
  		listFilesInternal(list, dir, filter, recursive);
  		return list;
  	}
docs: List files ONLY, not include directories.