Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
Source by newbedev.com #
 
PREVIOUS NEXT
Tagged: #list #files #folder #python
ADD COMMENT
Topic
Name
5+9 =