Socket
Book a DemoInstallSign in
Socket

ftp_transfer

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ftp_transfer

0.1.0
bundlerRubygems
Version published
Maintainers
1
Created
Source

ftp_transfer

The ftp_transfer gem was designed in an attempt to create a simpler api for bulk ftp transfers.

Here is an example of an upload. In this case, the optional archive directory option has been specified so a copy of the transferred files will be kept locally in that directory. The pattern option is also optional and will default to '*'.

require 'ftp_transfer'
FtpTransfer.new(
  host: 'foobar.bazquux.com',
  user: 'user',
  pass: 'password',
  port: 21212, # optional param (will default to 21)
  local_dir: '~/files-to-send',
  pattern: '*.jpg',
  archive_dir: '~/archived-files').upload('file-upload-dir')

Here is an example of a download

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

There is not currently an archive option for the download method. If you need that for your application, feel free to send a pull request.

FAQs

Package last updated on 20 Feb 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.