Is there something like firewall rule for folders?

Hello, it would be handy if I could per-folder assign a blocking/allowing firewall rule for all existing/future applications in this location, e.g. block internet for everything within Windows %temp% folder and it’s subfolders. Usually there only operate malicious softwares and generally unwanted things. Instead of blocking manually each single process trying to connect from there, I want to set up only one rule and done. I wonder if there’s something like that with Comodo?

When creating a rule you can add a * at the end of the file path to apply the rule to the whole folder. c:\example*

You can also make use of file groups.