I am getting a number of files like below in incoming folder
if (check US file && IND file)
get the latest modified US file and IND file
iterate and process files
How can i execute the above in Talend
Note - I want to check only US and IND files , if both files are present then only get the latest file of US and IND.... Process the latest file further
Use a tFileList and "Order by" modified date. Then check the filename supplied by the ((String)globalMap.get("tFileList_#_CURRENT_FILE")) globalMap variable to see if it is worth processing. If it is, use the filepath variable ((String)globalMap.get("tFileList_1_CURRENT_FILEPATH")) to point your file component to it.
I think you are confusing the issue by combining the country and date filtering/ordering. You can simply process the files in order (assuming all will be processed) and selectively process them according to the IND/US section in the name.