Search code examples
talend

How to put files with Talend respecting directory structures


I'm trying to ftp files from a directory containing subdirectories and I'd like the directory structure/hierarchy to be respected on the server.

The job looks like this : enter image description here

With the various components set like this : tFileListSettings

tIterateToFlowSettings

ftpPutSettings

and I've got a NullPointer Exception when accessing the row1.localPath variable (even if when tLogRow I see the right information I need).


Solution

  • You could link the tFileList directly to the tFTPPut component(iterate link), using tFileList_1_CURRENT_FILEPATH as the local directory in tFTPPut.