mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Fix bug in local storage #copy_object.
This commit is contained in:
parent
4391f3dee7
commit
149b1a4662
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ module Fog
|
||||||
require 'fileutils'
|
require 'fileutils'
|
||||||
source_path = path_to(::File.join(source_directory_name, source_object_name))
|
source_path = path_to(::File.join(source_directory_name, source_object_name))
|
||||||
target_path = path_to(::File.join(target_directory_name, target_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)
|
::FileUtils.copy_file(source_path, target_path)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue