If you click in the “Select a filter” field and choose “File name” and then you click in the “Select a comparator” field and select “equals”, the third field will give you the possibility to enter a regular expression. As an example “/^dummy-.+$/i” is usually shown.
You can try to modify this regular expression so that it fits your needs. To be honest, I’ve personally not yet used it to restrict access to a specific folder, because I’ve running this kind of check in the called script itself.
As far as I remember, an enhancement request already exists to get the described selection added to the flow app.
I’m personally not using the files upload flow app, but other ones and all of these allow to select “Folder” as mime type value in a rule. So it might be worth to update your version if you cannot see this option in NC 19.x.
According to Flow, the tag(s) of a folder is somehow inheritable to its content, so basically:
Tag the upload folder or any target folder with tag “A” (or whatever name).
Create tag “B” (or whatever name).
Create Flow rule, that if file system tag is “A” AND mime type is not folder, then tag the file as “B”.
Create whatever Flow you need with files tagged as “B”.
No. 3 is important but unfortunately is not mentioned anywhere in the docs. This prevents tagging the top folder with both “A” and “B”. Depending on your use-case, you might not want the top folder to be processed at all (e.g. for time-based deletion).
@WhizzWr: You don’t even need two tags or automated tagging - a single rule is sufficient.
So instead of defining the first rule to automatically set tag B if the file is created in a folder with tag A and then to define a second rule to react on tag B, you can create a rule which directly reacts on tag A on the parent folder.