mirror of
https://github.com/StrawberryMaster/wayback-machine-downloader.git
synced 2025-12-18 10:16:47 +00:00
fixed bad characters in directories for windows
This commit is contained in:
parent
e95ade8079
commit
662ab9eeb7
@ -217,6 +217,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.exists? file_path
|
unless File.exists? file_path
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user