code: public DirectoryListing getPartialListing(String src, byte[] startAfter,
                                              boolean needLocation)
      throws IOException {
      DirectoryListing stats;
      src = dir.normalizePath(src);
      byte[][] names = INode.getPathComponents(src);
      INode[] inodes = new INode[names.length];
      readLock();
      try {
        dir.rootDir.getExistingPathINodes(names, inodes);
        getListingCheck(src, inodes);
        stats = dir.getPartialListing(src, inodes[inodes.length-1],
            startAfter, needLocation);
      } finally {
        readUnlock();
      }
      if (auditLog.isInfoEnabled()) {
        logAuditEvent(getCurrentUGI(),
          Server.getRemoteIp(),
          "listStatus", src, null, null);
      }
      return stats;
    }
docs: Get a partial listing of the indicated directory
  
  @param src          the directory name
  @param startAfter   the name to start after
  @param needLocation if blockLocations need to be returned
  @return a partial listing starting after startAfter