# File lib/fog/aws/models/storage/file.rb, line 57 def copy(target_directory_key, target_file_key, options = {}) 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.head(target_file_key) end