Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I dont think the global variable tFileList_1_CURRENT_FILEPATH can be used in the tFTPPut component for this case as it is a flow variable.
Hi Sabrina,
Why you would say global variable tFileList_1_CURRENT_FILEPATH cannot be used in tFTPPut. Is it just for that particular case or for all cases?
I am trying to transfer directories and files from my local machine to a remote server:
In tFileList, the FileList Type is : Directories
And here is the config for tFTPPut:
Local directory: ((String)globalMap.get("tFileList_2_CURRENT_FILEPATH"))
Remote directory:
context.Tgt_Dir + StringHandling.RIGHT(((String)globalMap.get("tFileList_2_CURRENT_FILEPATH")),StringHandling.LEN((String)globalMap.get("tFileList_2_CURRENT_FILEPATH"))-StringHandling.LEN(context.Local_Dir))
Filemask: "*" New name: ""
I was able to create the same directories in the remote server with tFTPCreateDirectory.
I was also able to send the files to the remote directories with tFTPPut, though sometimes the job would fail in the middle of file transfer. I am still trying to figure out why and I tend to think it is something in the source file that job failed at.
Did you mean ((String)globalMap.get("tFileList_2_CURRENT_FILEPATH")) is not allowed in Local directory field?
Thanks!
TM
Hello,
It is just for that particular case. Your files are located in local directories when you are using tfilelist to iterate a set of files or folders.
Best regards
Sabrina