Batch change the folder name based on the tags of the files inside it

Perhaps with a look at the

tos?

If you want to rename folders, then the current names are not really of interest.
Much more interesting would be to know which tag fields are filled and what the new names should look like.