0.0
No commit activity in last 3 years
No release in over 3 years
A bulk ftp transfer library
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.3
~> 5.0

Runtime

~> 0.0.3
 Project Readme

ftp_transfer

Handles tranfering many files at once over FTP using a higher level api than net/ftp from the standard library.

#upload

require 'ftp_transfer'
FtpTransfer.new(
  host: 'foobar.bazquux.com',
  user: 'user',
  pass: 'password',
  local_dir: '~/files-to-send').upload('file-upload-dir')

#download

FtpTransfer.new(
  host: 'foobar.bazquux.com',
  user: 'user',
  pass: 'password',
  local_dir: '~/received-files').download('file-download-dir')

Optional Settings (Examples):

port: 21212 # defaults to 21
pattern: '*.jpg'

Only applies for uploads:

archive_dir: '~/archived-files'

The pattern option will default to '*' when not specified.

Specifying the archive directory option keeps a copy of the transferred files locally in the given directory. There is not currently an archive option for the download method (Pull requests welcome!).