This topic contains 1 reply, has 2 voices, and was last updated by  Eliot Muir 9 years, 7 months ago.

Retrieve inbound FTP file name when using channel Source tab?

  • I’m using a channel’s ‘Source’ parameters to define inbound FTP file handling and it works really well. A new requirement for error reporting calls for sending out email/SMS messages that include the inbound file name containing the fault. Before I go down the path of rewriting this puppy using net.ftp.init() etc I thought I’d check to see if there is any way to get the name of the file that owns the data pushed into main() by the Source process. Great product, btw. Thanks in advance.

    Unfortunately it’s very common to run up with limitations with the From/To File components:

    Gives my opinion about this area. It’s going to be easier for you to go ahead and use a From Translator and then you have complete control over what information you keep etc.

    I find it’s quite enjoyable using the Lua APIs for files in Iguana. A few useful links: – os.fs – covers a whole bunch of File operations. – net.ftp of course.

You must be logged in to reply to this topic.