Disable autotagging for folders

Hello,
I make autotagging rule, it works, but it also auto tags the folder where the tagged file is located.
how can I make that the auto tagging work only for files not to the folders.
I do not want the folders to be auto tagged. how can I do that?