title: Delphi - Get last created folder name from a given path
body: <p>Is there a function to get the last created folder from a given path?
  I want to see the last created folder in order to check if my camera has taken photos today.
  Another approach I was thinking was to get the system date and then start searching for a folder that contained the current date.However if the camera date is wrong then this approach wont work!
  Thanks. Any other ideas?</p>
  
  <p>ex: </p>
  
  <pre><code>if lastcreatedfolder(dir_path):='05012016' then 
  showmessage('TODAY A FOLDER WAS CREATED') 
  else 
  showmessage('NO FOLDER WAS CREATED TODAY!');
  </code></pre>