feedforce / file_downloader

Complete downloading huge file even if connection interrupted few times.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FileDownloader

Complete downloading huge file even if connection interrupted few times.

Installation

Add this line to your application's Gemfile:

gem 'file_downloader'

And then execute:

$ bundle install

Usage

Specify access url and filepath to download, like below.

FileDownloader.download(url: file_url, filepath: 'path/to/downloaded_file.csv')

Development

After checking out the repo, run bin/setup to install dependencies & run rspec. You can also run bin/console for an interactive prompt that will allow you to experiment. You can also run bundle exec rspec to test with RSpec.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/sukechannnn/file_downloader. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the FileDownloader project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

About

Complete downloading huge file even if connection interrupted few times.

License:MIT License


Languages

Language:Ruby 98.0%Language:Shell 2.0%