I use the JetS3t to try to list sub files under a folder:
S3Object[] objects = s3Service.listObjects(Bucket, path, "/");
List<S3Path> children = new ArrayList<S3Path>();
for (S3Object obj : objects) {
children.add(new S3Path(obj.getKey()));
}
But it shows all the files under this folder, and finally through the help of S3Orgnizer I found that it is because some files is not owned by me. But why S3Orgnizer can show these files ? And how can I list the files even not owned by me in Java API ?
Thank you