Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…hine-downloader into niklasjansson-master
  • Loading branch information
hartator committed Oct 27, 2017
2 parents aa5977c + 662ab9e commit c360d46
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/wayback_machine_downloader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ def download_file file_remote_info
file_path = backup_path + file_path_elements[0..-1].join('/')
end
if Gem.win_platform?
dir_path = dir_path.gsub(/[:*?&=<>\\|]/) {|s| '%' + s.ord.to_s(16) }
file_path = file_path.gsub(/[:*?&=<>\\|]/) {|s| '%' + s.ord.to_s(16) }
end
unless File.exist? file_path
Expand Down

0 comments on commit c360d46

Please sign in to comment.