File path of the newest folder created, into a variable?

Hi,

I have a directory c:\myfolder that has a list of folders with the following naming rule::

c:\myfolder\20121112.1\

c:\myfolder\20121205.1\

c:\myfolder\20121205.2\

c:\myfolder\20121205.1\

c:\myfolder\20121205.2\

c:\myfolder\20121205.3\

etc.


Question:

How do I get the file path of the newest folder created, into a variable (c:\myfolder\20121205.3 in this case) ?

Thanks,

Gunnar

Hi Gunnar

I have attached an example project. It's a bit convoluted, we really should have an action to do this (I'll log a feature request). 

Arrghh… attachements are not working on the forums… the example is here :

http://downloads.finalbuilder.com/downloads/finalbuilder/examples/findlatestfolder.zip