I need to be able to process folders in a parent folder. The parent folder will always be named the same, but the sub folders will be named uniquely as they have a datetime stamp within their name. I use the wait_for_file function to wait for uniquely named files, can I get it to work for folders, then within that while, I can use wait_for_file.
Folder - Parent (a shared folder on the network)
Folder - 123445.201602040813.abc (sub folder)
a.xml
b.xml
c.xml
Folder - 98765.201602040956.xyz (sub folder peer)
1.xml
a.xml
In this scenario, I need to loop over the sub folders then fall into a sub while loop on the *.xml files. I know how to process over the files, but is there a built-in function to similarly loop over the sub folders?