JCLOUDS-805: Populate StorageMetadata size for GCS

This commit is contained in:
Andrew Gaul 2015-01-15 15:32:34 -08:00
parent b81322ac75
commit 480b76fe8d
2 changed files with 3 additions and 1 deletions

View File

@ -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;
}

View File

@ -63,6 +63,7 @@ public class ObjectToBlobMetadata implements Function<GoogleCloudStorageObject,
} else {
to.setType(StorageType.BLOB);
}
to.setSize(from.size());
return to;
}