Skip to content
Advertisement

Get all File from Subfolder Boto3

I have this code to download all the files from a buckets AWS S3

JavaScript

Inside that bucket, I have a folder called “pictures”

How can I get the files only in my folder?

My try:

JavaScript

Advertisement

Answer

Inside that bucket, I have a folder called “pictures”

How can I get the files only in my folder?

You can get the files only in the “pictures” folder by providing a prefix:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement