Your first suggestion, to have the developer specify which folders it needs to access, is already how it works. Hmm... for some reason there is supposed to be a help page called "Control access to files and folders" but it is 404ing right now. Anyhow, I frequently see a newly installed application request access to the Desktop, Downloads, or Documents folders.