You are not logged in.
Announcement
Unanswered posts
|
Pages: 1

Hello !
I have a java job in which I create a file listing a number of filepaths. How can I use a FTPget to retrieve this list of files ?
I tried with a tinpufullrow and with a tforeach and with the filemask field of ftpget but it doesn't seem to be it.
Is there a way ?
Thank you ! ![]()
Offline

Hi Augustine,
Have you tried to use a tFlowToIterate between your tInputFullRow and your tFTPget ? I think it could do the trick ;-)
If your project is in java, you can find an example whith a tFlowToIterate in the following topic : http://www.talendforge.org/forum/viewto … 608#p22608
Regards,
Karine
Offline
Hello Augustine
Can you show us an example of content of your file?
Best regards
shong
Offline

Hello shong !
My file contains filepaths like that :
file/Log/info.log
aladin/Log/info.log
baco/Log/info.trc
Pog/Log/info.log
Details/Log/info.log
saph/Log/info.log
BEW/Log/info.log
Ocean/Log/inflo.log
caliso/Log/info.log
infg/Log/bkup/info.log
...
Thank you for your help ![]()
Offline
Hello
Here is a scenario,
in.csv:
file/Log/info.log
aladin/Log/info.log
baco/Log/info.trc
Pog/Log/info.log
Details/Log/info.log
saph/Log/info.log
BEW/Log/info.log
Ocean/Log/inflo.log
caliso/Log/info.log
infg/Log/bkup/info.log
expression of var1:
row1.line.lastIndexOf("/")+1expression of filePath:
row1.line.substring(0,Var.var1)
expression of fileName:
row1.line.substring(Var.var1)
tLogRow_1:
Starting job forum6407 at 00:02 01/05/2009. .--------------+---------. | tLogRow_1 | |=-------------+--------=| |filePath |fileName | |=-------------+--------=| |file/Log/ |info.log | |aladin/Log/ |info.log | |baco/Log/ |info.trc | |Pog/Log/ |info.log | |Details/Log/ |info.log | |saph/Log/ |info.log | |BEW/Log/ |info.log | |Ocean/Log/ |inflo.log| |caliso/Log/ |info.log | |infg/Log/bkup/|info.log | '--------------+---------' Job forum6407 ended at 00:02 01/05/2009. [exit code=0]
Best regards
shong
Offline
Pages: 1