Answers for "get list of file names in s3 bucket boto3 client"

1

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)
Posted by: Guest on November-30-2020

Code answers related to "get list of file names in s3 bucket boto3 client"

Browse Popular Code Answers by Language