PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 02/20/2018 1:25 PM by  Kyle Jorgensen
FTP Node – Retrieve latest file from remote source folder
 1 Replies
You are not authorized to post a reply.
Author Messages
Systems Analyst
Martin Health System
Veteran Member
(143 points)
Veteran Member

Send Message:

02/20/2018 8:24 AM

    Using the FTP node I am trying to build a process that file transfers the latest file of a list of files located on a remote source folder.  Has anyone written a process that searches a remote folder for that latest file then transfers the file using the FTP node?

    Kyle Jorgensen
    Veteran Member
    (314 points)
    Veteran Member

    Send Message:

    02/20/2018 1:25 PM
    I'm not sure that's possible by using the FTP node alone.
    The FTP node doesn't allow for a method of listing files on the remote system.

    A possible work around is a script (either unix or batch) that uses FTP to get a list of files from the remote system and writes them to a local file. The script can be executed from IPA. Subsequent nodes can read the file created by the script and parse it to determine which file is the new one. After you know which file you need to 'get', then you can use the FTP node to fetch it.

    There might be more succinct methods of accomplishing your goal, but this what I thought of off the top of my head.
    You are not authorized to post a reply.