From f43697a765e153a31cb609dd057ad6a4ab13e1e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sigur=C3=B0ur=20Gu=C3=B0brandsson?= Date: Sun, 6 Sep 2015 16:27:09 +0000 Subject: [PATCH] Fixed bug #8 The string being returned did not include `File exists @ dir_s_mkdir - ` but `File exists - ` --- lib/wayback_machine_downloader.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wayback_machine_downloader.rb b/lib/wayback_machine_downloader.rb index 2edd48c..c62efb9 100644 --- a/lib/wayback_machine_downloader.rb +++ b/lib/wayback_machine_downloader.rb @@ -110,7 +110,7 @@ class WaybackMachineDownloader FileUtils::mkdir_p dir_path unless File.exists? dir_path rescue Errno::EEXIST => e puts "# #{e}" - file_already_existing = e.to_s.split("File exists @ dir_s_mkdir - ")[-1] + file_already_existing = e.to_s.split("File exists - ")[-1] file_already_existing_temporary = file_already_existing + '.temp' file_already_existing_permanent = file_already_existing + '/index.html' FileUtils::mv file_already_existing, file_already_existing_temporary