1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Merge pull request #680 from larspind/b13fa112369ef26760be52fce81ac7b366703010

Change to only do a 'head' on the file that we've copied directly in S3
This commit is contained in:
Wesley Beary 2011-12-29 08:10:37 -08:00
commit 352d3658cb

View file

@ -50,7 +50,7 @@ module Fog
requires :directory, :key
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)
target_directory.files.head(target_file_key)
end
def destroy