From b13fa112369ef26760be52fce81ac7b366703010 Mon Sep 17 00:00:00 2001 From: Lars Pind Date: Thu, 27 Oct 2011 19:49:10 +0200 Subject: [PATCH] Only do a 'head' on the file that we've copied - no need to go download it now, that would defeat the purpose --- lib/fog/aws/models/storage/file.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fog/aws/models/storage/file.rb b/lib/fog/aws/models/storage/file.rb index 4ba3ff5cf..6413cf318 100644 --- a/lib/fog/aws/models/storage/file.rb +++ b/lib/fog/aws/models/storage/file.rb @@ -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