CopySource = {
'Bucket': file.bucket_name,
'Key': file.key
}
Bucket = project_bucket
Key = file.key
s3_client.copy_object(Bucket,Key,CopySource)
尝试将对象从s3桶的一个目录复制到具有相同目录结构的另一个s3
如文档中所述,它应该是:
s3_client.copy_object(Bucket=project_bucket,Key=file.key,CopySource)