FTP Node – Retrieve latest file from remote source folder

 1 Replies
 1 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
agersh
Veteran Member
Posts: 81
Veteran Member

    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
    Posts: 122
    Veteran Member
      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.