Merge branch 'master' of https://github.com/niklasjansson/wayback-machine-downloader into niklasjansson-master

This commit is contained in:
hartator 2017-10-26 20:05:10 -05:00
commit c360d4621f

View File

@ -260,6 +260,7 @@ class WaybackMachineDownloader
file_path = backup_path + file_path_elements[0..-1].join('/') file_path = backup_path + file_path_elements[0..-1].join('/')
end end
if Gem.win_platform? 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) } file_path = file_path.gsub(/[:*?&=<>\\|]/) {|s| '%' + s.ord.to_s(16) }
end end
unless File.exist? file_path unless File.exist? file_path