}
Project project = getProject();
User user = getAuth().getUser();
FsBucket bucket = fs.findBucket(user, project, bucketName);
if (bucket == null) {
throw new WebApplicationException(Status.NOT_FOUND);
}
List<DirectoryListEntry> entries = fs.listFiles(project, bucket, prefix, delimiter, marker);
ResponseBuilder response = Response.ok();
// X-Container-Object-Count: 7
// X-Container-Bytes-Used: 413
setHeaders(bucket.getData(), response);
if (formatParam == null) {
response.entity(new ObjectListTextWriter(entries));
} else if ("json".equals(formatParam)) {
response.entity(new ObjectListJsonWriter(entries));