int maxListingLength = 2000;
try {
String marker = null;
while (true) {
StorageListChunk chunk = listObjectsChunked(bucket, prefix, delimiter, maxListingLength, marker);
for (StorageObjectInfo o : chunk.getObjects()) {
ret.add(o);
}
marker = chunk.getPriorLastKey();
if (marker == null) {
break;
}
}
} catch (RestClientException e) {