I am doing a transformation on Pentaho Data Integration and I have a list of files in a directory of my SFTP server. This files are named with FILE_YYYYMMDDHHIISS.txt format, my directory looks like that:
- mydirectory
- FILE_20130701090000.txt
- FILE_20130701170000.txt
- FILE_20130702090000.txt
- FILE_20130702170000.txt
- FILE_20130703090000.txt
- FILE_20130703170000.txt
My problem is that I need get the last file of this list in accordance of its creation date, to pass it to other transformation step...
How can I do this in Pentaho Data Integration?