Hi, Please help. I need to get the files "fill_*_tst.txt" from sFTP server. When I specify the file name, it works. but I tried to create a dynamic name, it is not working in tFTPget. HEre is the code I input in 'filemask", which can be wrong. "fill_" + TalendDate.formatDate("yyyyMMdd", TalendDate.getCurrentDate()) + "_*_tst.txt" How can I do that? Thank you.
I haven't tried, am I'm not a java expert, but I suspect not. I use TalendDate.addDate and a context variable to do this. context.myDate = Calendar.getInstance().getTime(); context.myDate = TalendDate.addDate(context.myDate, -1, "dd");
I am putting together a small POC using Talend toolkit (v5.0.1.r74687) and this example is is exactly what I'm looking to do, but when I run the job, it will not compile, giving me an error saying that "GregorianCalendar cannot be resolved to a type" and highlighting the tJava object (expectantly I guess) as to the source of the error.
Any pointers as to what I'm doing wrong would be most welcome as its the first hurdle in 3 days of playing with this software that I've been unable to resolve myself (with the help of talendforge and/or google anyway)