@Override
    public Collection<File> getChildren() throws IOException {
      if (fs.isFile(file)) {
        return Collections.emptyList();
      }
      return Stream.of(fs.listStatus(file)).map(getAsFile).collect(Collectors.toList());
    }
A {@link File} that wraps a simple {@link Path} on a {@link FileSystem}.
hbase-server/src/main/java/org/apache/hadoop/hbase/backup/HFileArchiver.java