In this case, the simple way is to set up several repeaters on your page template.
One which retrieves the "folders" and their names to generate the tab index. Set the index ID to the DataIndex
.
Then setup another repeater with a path specific to the first folder.
Then setup another repeater with a path specific to the second folder.
Etc, etc.
It may not be the most efficient but it's the quickest and could be efficient if you set up caching on those web parts.