public static List<FileStatus> filterFileStatuses(FileStatus[] input, FileStatusFilter filter) {
    if (input == null) return null;
    return filterFileStatuses(Iterators.forArray(input), filter);
  }
Filters FileStatuses in an array and returns a list
@param input  An array of FileStatuses
@param filter A required filter to filter the array
@return A list of FileStatuses
hbase-server/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java