generate index.html recursively in a folder