lib/cos/download.rb in cos-0.1.1 vs lib/cos/download.rb in cos-0.1.2
- old
+ new
@@ -20,10 +20,11 @@
attr_accessor :cpt_file, :session
def initialize(opts = {})
super(opts)
- @cpt_file = options[:cpt_file] || "#{File.expand_path(file_store)}.cpt"
+ @file_store = File.expand_path(file_store)
+ @cpt_file = options[:cpt_file] || "#{@file_store}.cpt"
end
# 开始下载
def download
logger.info("Begin download, file: #{file_store}, threads: #{@num_threads}")
\ No newline at end of file