Open to hosting. Excuse my ignorance, a program like FileZilla will allow me to generate direct links for all the files in a given folder?
I honestly don't know intricacies well enough to be able to say it will work your use case, but basic systems like that will make the url the file name in the folder structure, like on the computer. For example, it would have example.com/rootfolder/level2/level3etc/example.jpeg as the default way urls are generated, from my understanding.
I can't speak for batch automations etc, but that is the concept to my understanding.
Another tool you may want to checkout is nextcloud