Skip to main content
Inspiring
February 16, 2024
Question

Need solution to list all objects in S3 bucket for CF2018

  • February 16, 2024
  • 1 reply
  • 358 views

Hello All,

 

I am looking for simple solution to list down all objects unders S3 bucket specific folder. I can list down one object but challenge is object/keyname is dynamic. So, I cannot specify keyname while retrieving the object from s3 bucket.

 

Is there any simple way if anyone come across to pull all S3 bucket folder objects and copy them into local directory?

Then I can use <cfdirectory> to filter the files I want.
Please suggest.

Thanks in advance!

    This topic has been closed for replies.

    1 reply

    BKBK
    Community Expert
    Community Expert
    February 25, 2024

    Have a look at Adobe's documentation on ColdFusion and Amazon S3.  There you will find an example of code to create and dump a bucket-list