Boto S3 List Files In Folder Code Example


Example: list file in s3 boto

import boto3  s3 = boto3.resource('s3') my_bucket = s3.Bucket('my_bucket_name')  for object_summary in my_bucket.objects.filter(Prefix="dir_name/"):     print(object_summary.key)

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable