Page 1 of 1

Downloading Missing-Updated Files

Posted: Tue Jan 05, 2021 9:05 pm
by AdrianGray
I am looking for some guidance as to the best approach to add/update files from an FTP site to a local folder. We have a bank of over 1500 standard reports that get updated from time to time. They on an FTP site so I need to compare the local folder to the ones on the FTP site. If the FTP site has a report the local computer does not, it needs downloading.

The other part is to see if the file on the FTP site is newer. If so, rename local file then download updated report. I am trying to avoid having to imbed the files into the installer. Thanks in advance, Adrian.

Re: Downloading Missing-Updated Files

Posted: Thu Jan 07, 2021 3:03 pm
by FrancescoT
Unfortunately, IA doesn't have a built-in method capable to enumerate the files that may be available from a FTP folder.
For this you should develop your own custom method. This may be a custom plugin, a DLL or an EXE.

Alternatively you may simplify your approach, with storing on your FTP server a file where is stored the list of the updated files. This may be a simple TXT file.

Then such file may be downloaded by your installer, and once you read its content ...the rest is just a matter of downloading those files from your FTP.

Of course, this is just a possible suggestion.