HTML auto generator!

hi so i have a linux server and im making a website for it well i want to have it when i add a new file to that directory it auto dose html code for example i want this to auto do this

<video controls> <source src=“pfiles\\comedy\\Sammy J & Randy - A Ballad-E6K66u9kWks.mp4”>


if anyone knows how i am all ears