From 480b76fe8d67997164f4c4b43212e38ea0c20402 Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Thu, 15 Jan 2015 15:32:34 -0800 Subject: [PATCH] JCLOUDS-805: Populate StorageMetadata size for GCS --- .../blobstore/functions/ObjectListToStorageMetadata.java | 3 ++- .../blobstore/functions/ObjectToBlobMetadata.java | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/providers/google-cloud-storage/src/main/java/org/jclouds/googlecloudstorage/blobstore/functions/ObjectListToStorageMetadata.java b/providers/google-cloud-storage/src/main/java/org/jclouds/googlecloudstorage/blobstore/functions/ObjectListToStorageMetadata.java index 008cb46661..22f00daf9d 100644 --- a/providers/google-cloud-storage/src/main/java/org/jclouds/googlecloudstorage/blobstore/functions/ObjectListToStorageMetadata.java +++ b/providers/google-cloud-storage/src/main/java/org/jclouds/googlecloudstorage/blobstore/functions/ObjectListToStorageMetadata.java @@ -54,7 +54,8 @@ public class ObjectListToStorageMetadata if (input.getContentMetadata().getContentType().equals("application/directory")) { return new StorageMetadataImpl(StorageType.RELATIVE_PATH, input.getProviderId(), input .getName(), input.getLocation(), input.getUri(), input.getETag(), input - .getCreationDate(), input.getLastModified(), userMetaData); + .getCreationDate(), input.getLastModified(), userMetaData, + input.getSize()); } return input; } diff --git a/providers/google-cloud-storage/src/main/java/org/jclouds/googlecloudstorage/blobstore/functions/ObjectToBlobMetadata.java b/providers/google-cloud-storage/src/main/java/org/jclouds/googlecloudstorage/blobstore/functions/ObjectToBlobMetadata.java index 636e3323e8..93f99593a0 100644 --- a/providers/google-cloud-storage/src/main/java/org/jclouds/googlecloudstorage/blobstore/functions/ObjectToBlobMetadata.java +++ b/providers/google-cloud-storage/src/main/java/org/jclouds/googlecloudstorage/blobstore/functions/ObjectToBlobMetadata.java @@ -63,6 +63,7 @@ public class ObjectToBlobMetadata implements Function