I need to write a script that will output folder contents into html. The only thing needed on the page(s) is the filenames themselves. This is going to be used for a music collection.
Example:
The script looks in the tree artistalbumtrack.mp3
and outputs a folder named for the artist and a subfolder named for the album with a single html page containing the tracklisting. Basically the same directory structure as the original, just with an html page in the album folder instead of the mp3s.
So I’d have folders (artist1 artist2 artist3) with subfolders (album1 album2 album3) containing html files that list the tracks in text.
I’ve done this before with perl but lost the script in a hdd crash and figured it would be quicker to post this request than try and figure it out again. This version is not for online use however. It just needs to be able to run on a machine and output the files.
Thanks!