Boto s3 get_metadata

后端 未结 1 1328
醉话见心
醉话见心 2021-01-11 15:53

Trying to get meta_data that i have set on all my items in an s3 bucket. Which can be seen in the screenshot and below is the code I\'m using. The two get_metadata calls ret

相关标签:
1条回答
  • 2021-01-11 16:23

    bucket.list() does not return metadata. try this instead:

    for key in bucket.list():
       akey = bucket.get_key(key.name)
       print akey.get_metadata("company")
    
    0 讨论(0)
提交回复
热议问题