This iterates over all the directories on a FTP site, listing the files as it goes.
Add this line to your application's Gemfile:
gem 'ftp_files'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ftp_files
Run it by passing the following options in :
FtpFiles.run(host, port, user, password, passive)
Or use the ftp_files.yml
config to list the above options (see the .example file get started)
FtpFiles.run('server1')
- Fork it ( https://github.com/[my-github-username]/ftp_files/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request