OpenACS has rolled ns_dirlist (or at least the creation of an index page) into the request processor. I don't have the time to look up exactly where but you can find it by searching for lines from the fastpath.tcl _ns_dirlist function in the OpenACS code base.