I need to list all files contained in a certain folder contained in my S3 bucket.
The folder structure is the following
/my-bucket/users/
Based on @davioooh answer. This code is worked for me.
ListObjectsRequest listObjectsRequest = new ListObjectsRequest().withBucketName("your-bucket") .withPrefix("your/folder/path/").withDelimiter("/");