I seem to be stuck in a lot of work with files right now - and I need to know if it is possible to verify whether a folder has no subfolders? I guess that I can do it by using the execute script, but I'd much rather use some of the already created services in foundation if they allow it?
Side question - how do I find the oldest subfolder under one particular folder?
The reason that I need this is that I want to create a simple priority queue where the process always from the highest prioritized folder (and moves it into another process watched folder) and kicks of that process with the highest priority files first.
If you have any good ideas of how to do this I am all ears - and I would be happy to post my process when its done
Thanks in advance
Ohh I figured it out my self
You just use the Find-service and use regular expresion * and set it to match for Directories in the subdir you want to monitor. If the result list is empty the folder has no subfolders
Simple as that