How can I tell how many objects I've stored in an S3 bucket?

后端 未结 29 3789
逝去的感伤
逝去的感伤 2020-12-02 04:45

Unless I\'m missing something, it seems that none of the APIs I\'ve looked at will tell you how many objects are in an /. Is ther

29条回答
  •  孤城傲影
    2020-12-02 05:24

    If you're looking for specific files, let's say .jpg images, you can do the following:

    aws s3 ls s3://your_bucket | grep jpg | wc -l
    

提交回复
热议问题