Answers for "python s3 list files in folder"

0

list files in s3 folder python

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 September-21-2021

Code answers related to "python s3 list files in folder"

Python Answers by Framework

Browse Popular Code Answers by Language