I have at the moment the match field blank and so all files and folders are stored in the array. Then I test each variable in a loop for its type and find the directories with dir. But this is time consuming eapecially for directories with 100's or 1000's of files, when I may only need to find the name of the folders and that could be just 2-3 of them.
ps. Pent if you read this, I have seen in Tasker to come, listing files in date order/type order etc, please make that available soon:p
Using !*.* in the match seems to work....