@Override
  public boolean exists(String path) {
    return tableMetaStore.doAs(
        () -> {
          Path filePath = new Path(path);
          FileSystem fs = getFs(filePath);
          try {
            return fs.exists(filePath);
          } catch (IOException e) {
            throw new UncheckedIOException("Fail to check file exist for " + path, e);
          }
        });
  }
Implementation of {@link AuthenticatedFileIO} for hadoop file system with authentication.
amoro-format-iceberg/src/main/java/org/apache/amoro/io/AuthenticatedHadoopFileIO.java