Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Chaitanyas
Contributor
Contributor

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
Labels (3)
1 Reply
Anonymous
Not applicable

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