JCLOUDS-654: Add size to Swift StorageMetadata

This allows callers to read the content length during container
listing.  Follow-on to fae097e144c0b9adf00f88ded1d614e2aec963f8.
This commit is contained in:
Andrew Gaul 2015-01-15 17:44:31 -08:00
parent e09b6158ad
commit e170f1e632

View File

@ -61,6 +61,7 @@ public class ToBlobMetadata implements Function<SwiftObject, MutableBlobMetadata
} else {
to.setType(StorageType.BLOB);
}
to.setSize(from.getPayload().getContentMetadata().getContentLength());
return to;
}