public static FileStatus[] listStatus(final FileSystem fs, final Path dir) throws IOException {
    return listStatus(fs, dir, null);
  }
Calls fs.listStatus() and treats FileNotFoundException as non-fatal This would accommodates
differences between hadoop versions
@param fs  file system
@param dir directory
@return null if dir is empty or doesn't exist, otherwise FileStatus array
hbase-common/src/main/java/org/apache/hadoop/hbase/util/CommonFSUtils.java