I configured the PDI to access an FTP server and download a file in csv, so everything is fine, the problem is that inside the folder on the FTP server there will always be more of file,
REC_PEND_FECH_COM20180219130059.csv REC_PEND_FECH_COM20180219132200.csv REC_PEND_FECH_COM20180219134000.csv . . .
In other words, you need to always copy the most current file, how do you do it?
Here I used the shell script in pentaho to do the FTP and copy the files (Mget in the folder), but I do not know how to specify to always capture the most recent file inside the directory, the filename is dynamic (REC_PEND_FECH_COMaaaammddhhmmss.csv)
Can you help me?