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
屬性?