The For Each Directory action will iterate through directories under a root directory.
For Each Directory
Name
A friendly name for this action (will be displayed in the actions workflow area).
...
More information about pattern wild cards can be found on the Ant Pattern Usage page
Options
Exclude
...
empty directories
Tick to exclude empty directories from the list of directories to iterate.
...
Specify the directory property to order the directories by when iterating. Select either Default, Created, Modified, Name or Path. By default, the directories are ordered as matched by each patternPath.
Descending order
Tick to order the directories in descending rather than ascending order.
...