DEV Community

loading...

Discussion on: I just published my first Open Source library in Python and wanted to share it with you guys (video below)

Collapse
toanoop profile image
Anoop Sivadas

Will it be able to FTP. txt files to mainframes

Collapse
voyz profile image
Voy Author

I haven't tried doing this yet although at a glance I can't see why this wouldn't work. You're most welcome to give it a shot! Let me know how it goes, I'd be happy to help you build it.

You can implement it as follows:

  1. Create an Inlet that reads a directory's contents and produces records containing file paths to the .txt files
  2. Create an Outlet that expects records with file paths, picks the files specified and sends them over to your mainframe.
  3. Link the two nodes and schedule on the interval of your choice.

The basic_inlet and basic_outlet examples would be a good place to start if you'd like to see how inlets and outlets can be extended.

Keep me posted if you decide to try it out 😊

Forem Open with the Forem app