I have a customer who is dropping hundreds of files on my FTP site at once. I have a script that is downloading them and redistributing them, but it's taking so long with this number of files that I'm looking for a method of downloading files in, say, blocks of 50 files, for each run of the script. The files are of various types with different names and extensions, so I have to use *.* to download.
I'm good with how to process the files once they are downloaded - I just can't find a way to limit or loop the download process so that it only downloads fifty files at a time. Is there a way to do this?