One Star

tSCPGet only copies the last file in the directory

Hi,
I'm doing a SCPGet to a server using a public key. The problem i'm having is only the LAST FILE in the directory is being copied to my local server.
What setting is wrong
FTPTCPIP.00G0200.txt
FTPTCPIP.00GV100.txt
FTPTCPIP.00G0500.txt
FTPTCPIP.00G0600.txt
FTPTCPIP.00G0100.txt
FTPTCPIP.00G0180.txt
The current scenario is:
tSCPConnection --- OnSubjobOk --- tSCPFileList --- Iterate --- tIterateToFlow --- main --- tSCPGet
The Filelist in tSCPFileList
"cd /tmp/Talend/"
"ls *.txt"
The tIterateToFlow is
Column Value
filename ((String)globalMap.get("tSCPFileList_1_CURRENT_LINE"))

The Filelist in tSCPGet
"/tmp/Talend/"+((String)globalMap.get("tSCPFileList_1_CURRENT_LINE"))
/tmp/Talend/ is the directory path on the ftp server

Any advice
2 REPLIES
Community Manager

Re: tSCPGet only copies the last file in the directory

Hi
tIterateToFlow component is not needed in the job.
tSCPConnection
|
OnSubjobOk
|
tSCPFileList --- Iterate --- tSCPGet
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: tSCPGet only copies the last file in the directory

Thanks Solved