From 149b1a46623c7b8890e553f4dfec78f66aa6369e Mon Sep 17 00:00:00 2001 From: Jade Tucker Date: Fri, 6 Jul 2012 10:34:26 -0700 Subject: [PATCH] Fix bug in local storage #copy_object. --- lib/fog/local/storage.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fog/local/storage.rb b/lib/fog/local/storage.rb index 1aec0a98d..154cc3915 100644 --- a/lib/fog/local/storage.rb +++ b/lib/fog/local/storage.rb @@ -69,7 +69,7 @@ module Fog require 'fileutils' source_path = path_to(::File.join(source_directory_name, source_object_name)) target_path = path_to(::File.join(target_directory_name, target_object_name)) - ::FileUtils.mkdir_p(::File.dirname(source_path)) + ::FileUtils.mkdir_p(::File.dirname(target_path)) ::FileUtils.copy_file(source_path, target_path) end end