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

Only do a 'head' on the file that we've copied - no need to go download it now, that would defeat the purpose

This commit is contained in:
Lars Pind 2011-10-27 19:49:10 +02:00
parent 3e859fafab
commit b13fa11236

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