Just as the title said.How can I use python-boto3 to get the last modify time for a file in amazon-s3? Thanks.
Asked
Active
Viewed 4,586 times
1 Answers
2
In boto3, you can use s3.client.head_object()
this will return a dict of meta data for the particular object. You just need to look into the LastModified element.
'LastModified': datetime(2015, 1, 1)

mootmoot
- 12,845
- 5
- 47
- 44