I'm wondering how I would download all _*.xml_ files from a folder I have set up on an FTP server using Net::FTP. I have seen that glob()
would be the best way, but I cannot quite wrap my head around the logic.
Basically, I need to check if there are XML files in the folder. If not, wait 5 seconds, and check again. Once the files show up, then I need to download them and run them through a Java app (this part I've already got down).
So, wonderful anonymous helpers, how can I monitor a folder for a specific filetype, and automatically ftp->get
those files when they appear?
Thanks!