HTTP server directory listing...

Hi there, i want to create a HTTP and HTML based server, for simple file
sharing, but first things first i want to be able for people to connect the
HTTPserver (i have gotten this far) but receive a HTML page with the
listings of the contents of a specified root folder which is generated on
the server start up...

any ideas of where to start ?

i want it like the directory browsing on Apache...