Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Haresh
Contributor
Contributor

Scan the list of the files from tfilelist1 where currentdate-filedate>5 minutes

I want to pick the files that are not being written into the folder yet and to ensure that they are completely written onto the folder and then pick them up for processing,so the condition should in tjava should be like for every iteration for .csv files:

"currentdate-filedate>5 minutes"

currentdate=TalendDate.getCurrentDate();

what do i pass in for the filedate?

So to compare the difference if its more than 5 minutes?

1 Reply
Anonymous
Not applicable

This is pretty easy to solve once you try out the below example....

 

0693p00000AZzqZAAT.pngConnect a tFileProperties component to your tFileList and configure the tFileProperties as below....

 

0693p00000AZzqjAAD.png 

This will give you the information you need