FTP a file based on last modified date

Five Stars

FTP a file based on last modified date

I have a job in Talend which need to connect to a ftp folder and look for the file with named 'ABCD' as eg. This file is going to be created everyday(with the same file name) and its placed in the ftp path and daily i need to move this file to some other folder. I'm new to talend and Java. Could you please help me how to move the file when and only the file, last modified date as of the job run date.
Thanks in advance
Thanks,
Chaitanya
Community Manager

Re: FTP a file based on last modified date

Hello
Using tFTPFileProperties component to get the file properties including mtime, this is the last modified date, check this property if it is the current date, if so, get this file and put it to another folder, the job design looks like:
tFTPFileProperties--main--tJavaRow--runIf--tftpget--oncomponent--tftpput
Regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business