If you create an automation task, add a Folder Iterator, Check 'Recurse' and add file types, eg. *.pks;*.pkb, only subfolders named with a .pks suffix will be visited. The recurse option does not correctly work, since no folders are named with a .pks suffix.
Steps to Replicate:
===================
1. Prepare directory structure:
Open CMD and enter following commands:
c:
cd \
md pkgs
md pkgs\x
md pkgs\x.pks
echo create or replace package p1 authid definer as procedure p1; end p1; / > pkgs\x\p1.pks
echo create or replace package p1 authid definer as procedure p1; end p1; / > pkgs\x.pks\p1.pks
2. Start Toad
3. Open Automation Designer
4. Right click, select New, Choose Control, DoubleClick Folder Iterator
5. Click the Folder Iterator , Choose folder c:\pkgs, Enter File type *.pks, Select Recurse, Click Apply
6. Click the Utilities tab, add Format Files action below Folder Iterator
7. See timestamps on C:\pkgs\x.pks\p1.pks and on C:\pkgs\x\p1.pks.
Only C:\pkgs\x.pks\p1.pks has been changed.
===================
This implies that the Folder Iterator also uses the File type to determine which folders to visit.