Skip to content
A bulk FTP transfer library
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
test
.gitignore
Gemfile
README.md
ftp_transfer.gemspec

README.md

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!).

You can’t perform that action at this time.