@Override //ref. HADOOP-12502
  public RemoteIterator<FileStatus> listStatusIterator(Path f) throws IOException {
    final RemoteIterator<FileStatus> remoteIterator = ProxyFileSystem.super.listStatusIterator(swizzleParamPath(f));
    return new RemoteIterator<FileStatus>() {
      private final RemoteIterator<FileStatus> orig = remoteIterator;

      @Override
      public boolean hasNext() throws IOException {
        return orig.hasNext();
      }

      @Override
      public FileStatus next() throws IOException {
        FileStatus ret = orig.next();
        return swizzleFileStatus(ret, false);
      }
    };
  }
Create a proxy file system for fs.

@param fs FileSystem to create proxy for
@param myUri URI to use as proxy. Only the scheme and authority from
             this are used right now
shims/common/src/main/java/org/apache/hadoop/fs/ProxyFileSystem.java