如何读取S3存储桶中每个项目的元数据?

时间:2016-05-16 13:17:02

标签: amazon-web-services amazon-s3

我可以使用以下命令(来自this answer)在S3存储桶中的每个项目上设置Cache-Control元数据:

aws s3 cp s3://mybucket s3://mybucket --recursive --metadata-directive REPLACE \
--cache-control max-age=86400

有没有办法读取存储桶中每个项目的Cache-Control元数据?

1 个答案:

答案 0 :(得分:1)

这个bash单行应该可以工作(但是因为它为每个对象发送单独的请求所以它非常慢):

.controller('firstController', ['grabData', function($scope, $filter,grabData) {
  // Your code here
}]);