Create block access to a file rule for specific folder but not inner/childern folders

hello everyone …

i have been trying to create a rule for creating / uploading files with:

  • specific naming convention and i have figured it out already.
  • the rule applies to a specific folder tag, but it also applies to all of its sub-folders (not desirable).
  • so i need to figure out how to overcome this if possible ???

here is what i did for creating the block file access rule with:

  • File name, does not match, the reg-ex pattern (make sure no spaces here)
  • File MIME type, is not, Folder # just to make the rule apply for files only
  • File system tag, is tagged with, with-naming- convention # using tags to specifically select some folder out of the rest
  • i also tried to tag an inner folder with another tag like “without-naming-convention”, and then added a filter to use it like – File system tag, is not tagged with, without-naming- convention

it is now working as i expect so this might be a solution, but how can i automate tagging for inner-folders that is inside a specific folder ???

please advise …
many thanks


Nextcloud version: Nextcloud Hub 6 (27.1.3)
Operating system and version: Ubuntu 22.04
Install Method: Docker Container