How to wait for file on a ftp server?

One Star

How to wait for file on a ftp server?

Hi,
Everyday, I get some files on a ftp directory.
I never know the name or the number of those files (just the location and the files extension (*.csv or *.xml).
But sometimes, thoses files are late.... very late and all of the process runs with only one or two files instead of 10 or 15....
I will ask to receive with those files a file with the same name (for example : end_of_transfert.csv).
So I need to wait for its incoming before all of the process begins...
I can put a TWaitForFile
I can do that on a directory with a TWaitForFile.
But how can I do that with FTP???
Thanks for your help,
One Star

Re: How to wait for file on a ftp server?

Hello,
You can do like this (see the image)
with this parameters :
tInfiniteLoop_1 : set "wait at each iteration" at 60 for example if you want to check the files every minute.
tFTPGet_1 : set Filemask at "end_of_transfert.csv"
set If link : ((Integer)globalMap.get("tFTPGet_1_NB_FILE")).equals(1)
tFTPGet_2 : set the files extension you need (*.csv or *.xml).
tDie_1 (to stop the infinite loop) :
Die message : "download all files OK"
Error code : 0
Priority : Info
JC
One Star

Re: How to wait for file on a ftp server?

very astucious ;-)

Jérémie
One Star

Re: How to wait for file on a ftp server?

Thanks a lot!!!