code: public RemoteIterator<LocatedFileStatus> listPathWithLocation(
        final String src) throws IOException {
      checkOpen();
      try {
        if (namenodeProtocolProxy == null) {
          return versionBasedListPathWithLocation(src);
        }
        return methodBasedListPathWithLocation(src);
      } catch(RemoteException re) {
        throw re.unwrapRemoteException(AccessControlException.class);
      }
    }
docs: Get a partial listing of the indicated directory
  
  Recommend to use HdfsFileStatus.EMPTY_NAME as startAfter
  if the application wants to fetch a listing starting from
  the first entry in the directory
  
  @see ClientProtocol#getLocatedPartialListing(String, byte[])