I have a document library with multiple views based on the location. Each view has folders for each project. I want the folder metadata to apply to each document inside the folder. How do I go about doing this?

I have a document library with multiple views based on the location. Each view has folders for each project. I want the folder metadata to apply to each document inside the folder. How do I go about doing this?
Before looking for a solution using Power Automate, take a look at the Document Set feature in SharePoint. You can configure a document set such that properties defined in the folder will automatically trickle down to documents in that folder.
Here is a link for more information on Document Sets.