I am using AWS S3 bucket for my project where I am uploading images and listing images using APIs, which is working pretty fine.
Now I want to list all files of a specific S3 bucket/folder (listing of objects of the specific bucket).
Here is the screenshot of my S3 bucket:
I tried to give bucket names like
wevieu/development/user_default/
wevieu/development/user_default
s3://wevieu/development/user_default/
etc. but nothing helped me.
Most of the time I am getting this error or any other error with 400 response:
The specified key does not exist. (Service: Amazon S3; Status Code: 404; Error Code: NoSuchKey;
I tried 1 , 2, 3 solutions but didn't get help from any of this.
Help me if anyone have done this before successfully.
Note: I am using this SDK version com.amazonaws:aws-java-sdk-s3:1.11.423