I'm a beginner met node-red and want to look for files on a remote ftp location and download a filtered subset to a local dir. I use node-red-contrib-ftp for the LIST operation. How can I inject the filenames I got back from the LIST to the GET node? The GET has a Filename and Local Filename property. If I put a hardcoded filename in it, my flow works.
Start by reading the working with messages section from the docs. Then look at the structure of the data coming from the LIST command and work out what you have to do.
I'm able to parse the results from the LIST command. I can even filter the results based on my needs. That's not my problem. My problem is how to inject the filenames I got from my results into the FTP - GET node? I tried to create a message with the Filename property but is doesn't work.
Feed your effort at putting the filename in a message into a debug node and see if it looks as if it matches the node's requirements. If you think that it does match but doesn't work then show us what you see in the debug node.
Also tell us what 'doesn't work' means. Do you get an error of some sort?
I found the solution. I used localfilename instead of localFilename, so the case sensitivity was the problem that nothing happened with no error messages. Now it works just fine.
@Colin thanks for your help.