Introducing the MyMedia FTP gem

require 'mymedia_ftp'

ftp = MyMediaFTP.new(host: '192.168.4.177', user: 'user', password: '12345')
ftp.mv('/Sounds/Digital/*.wav', '/tmp/audio')
ftp.close


The above example demonstrates files which have a .wav extension within the /Sounds/Digital directory being moved (downloaded) to the local directory /tmp/audio.

Resources