lib/downlow/fetcher.rb in downlow-0.1.2 vs lib/downlow/fetcher.rb in downlow-0.1.3
- old
+ new
@@ -23,10 +23,10 @@
attr_accessor :tmp_dir, :destination
def initialize(url, options = {})
@url = Pathname.new(url)
@options = options
- @tmp_dir = Pathname.new(options[:tmp_dir] || 'tmp').expand_path
+ @tmp_dir = Pathname.new(options[:tmp_dir] || 'tmp').expand_path + 'fetch'
@tmp_dir.mkpath
@destination = Pathname.new(options[:destination] || tmp_dir + self.url.basename ).expand_path
@destination.dirname.mkpath
end
\ No newline at end of file