Python

Get latest ten S3 files by last modified date

import boto3 bucket = 'my-s3-bucket' s3 = boto3.resource('s3') my_bucket = s3.Bucket(bucket) files = my_bucket.objects.filter(Prefix='file prefix if any') files = [obj.key for obj in sorted(fil [...]