mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Merge origin
This commit is contained in:
commit
fe298e06b4
1 changed files with 2 additions and 0 deletions
|
@ -34,6 +34,8 @@ module Fog
|
|||
def copy(target_directory_key, target_file_key, options={})
|
||||
requires :directory, :key
|
||||
options['Content-Type'] ||= content_type if content_type
|
||||
options['Access-Control-Allow-Origin'] ||= access_control_allow_origin if access_control_allow_origin
|
||||
options['Origin'] ||= origin if origin
|
||||
connection.copy_object(directory.key, key, target_directory_key, target_file_key, options)
|
||||
target_directory = connection.directories.new(:key => target_directory_key)
|
||||
target_directory.files.get(target_file_key)
|
||||
|
|
Loading…
Add table
Reference in a new issue