Skip to content

Commit c360d46

Browse files
committed
Merge branch 'master' of https://github.com/niklasjansson/wayback-machine-downloader into niklasjansson-master
2 parents aa5977c + 662ab9e commit c360d46

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/wayback_machine_downloader.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ def download_file file_remote_info
260260
file_path = backup_path + file_path_elements[0..-1].join('/')
261261
end
262262
if Gem.win_platform?
263+
dir_path = dir_path.gsub(/[:*?&=<>\\|]/) {|s| '%' + s.ord.to_s(16) }
263264
file_path = file_path.gsub(/[:*?&=<>\\|]/) {|s| '%' + s.ord.to_s(16) }
264265
end
265266
unless File.exist? file_path

0 commit comments

Comments
 (0)