for ( S3ObjectSummary summary : S3Objects.withPrefix(s3, "my-bucket", "photos/") ) { System.out.printf("Object with key '%s'\n", summary.getKey()); }
The list of {@link S3ObjectSummary}s will be fetched lazily, a page at a time, as they are needed. The size of the page can be controlled with the {@link S3Objects#withBatchSize(int)} method.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|