3
很可能得到LAST_MODIFIED属性:Boto + Python + AWS S3:如何获取特定文件的last_modified属性?
import boto3
s3 = boto3.resource('s3')
bucket_name = 'bucket-one'
bucket = s3.Bucket(bucket_name)
for obj in bucket.objects.all():
print obj.last_modified
但它在一个桶中的所有对象这样做。我如何获得桶下一个特定对象/文件的last_modified
属性?