I don't know if I understand your question. The Process Files action has a 'Process once for each folder containing matching files' checkbox that sounds like it would help:
http://www.visualbuild.com/Manual/?p...ilesaction.htm. If not, please provide a little more detail on what exactly you're trying to accomplish.