How to clone a key in Amazon S3 using Python (and boto)?

前端 未结 6 2101
清歌不尽
清歌不尽 2021-02-19 02:00

I have a file contained in a key in my S3 bucket. I want to create a new key, which will contain the same file. Is it possible to do without downloading that file? I\'m looking

6条回答
  •  失恋的感觉
    2021-02-19 02:21

    Note that the 'copy' method on the Key object has a "preserve_acl" parameter (False by default) that will copy the source's ACL to the destination object.

提交回复
热议问题