1 Reply Latest reply on Oct 20, 2009 7:29 AM by kc@dafolo.dk

    Checking whether a folder is empty

    kc@dafolo.dk Level 1

      Hi there,


      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



      Kim Christensen

      Dafolo A/S