mirror of
https://github.com/apache/jclouds.git
synced 2025-03-09 02:09:58 +00:00
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:
parent
e09b6158ad
commit
e170f1e632
@ -61,6 +61,7 @@ public class ToBlobMetadata implements Function<SwiftObject, MutableBlobMetadata
|
||||
} else {
|
||||
to.setType(StorageType.BLOB);
|
||||
}
|
||||
to.setSize(from.getPayload().getContentMetadata().getContentLength());
|
||||
return to;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user