Method: Aws::S3::Object#copy_from
- Defined in:
- lib/aws-sdk-resources/services/s3/object.rb
#copy_from(source, options = {}) ⇒ Object
Copies another object to this object. Use ‘multipart_copy: true` for large objects. This is required for objects that exceed 5GB.
61 62 63 64 65 66 67 68 |
# File 'lib/aws-sdk-resources/services/s3/object.rb', line 61 def copy_from(source, = {}) if Hash === source && source[:copy_source] # for backwards compatibility @client.copy_object(source.merge(bucket: bucket_name, key: key)) else ObjectCopier.new(self, ).copy_from(source, ) end end |