Directory Indexer

A webpage is described by an html file. To make it available for people, you set up your webserver to serve that file when people visit your website. If the file is absent, you have the option of "autoindexing" the whole directory and make (almost) everything in that directory available online. The directory indexing script I wrote, which I call pg.sh, emulates this autoindexing by creating html files that describe the directory structure, and includes links to files so one can download or view them. You can see the example here, and browse its source code here.