I think the last time I had to use FTP was around 2005, when I was playing with PHP and “all the cool stuff”. But today I had to use Ruby to access a FTP server and automate some tasks.
Ruby makes this task really easy and fast. Here follow the snippet used to connect, iterate over a list of files and download them:
I am open sourcing a project that I have been using a lot lately. You can easily define routes and some rules...
Benchmarking Ruby and Erlang
Open sourcing a lib I created to benchmark Rails apps, using ActiveSupport::Notifications