mirror of https://github.com/apache/jclouds.git
JCLOUDS-805: Populate StorageMetadata size for GCS
This commit is contained in:
parent
b81322ac75
commit
480b76fe8d
|
@ -54,7 +54,8 @@ public class ObjectListToStorageMetadata
|
||||||
if (input.getContentMetadata().getContentType().equals("application/directory")) {
|
if (input.getContentMetadata().getContentType().equals("application/directory")) {
|
||||||
return new StorageMetadataImpl(StorageType.RELATIVE_PATH, input.getProviderId(), input
|
return new StorageMetadataImpl(StorageType.RELATIVE_PATH, input.getProviderId(), input
|
||||||
.getName(), input.getLocation(), input.getUri(), input.getETag(), input
|
.getName(), input.getLocation(), input.getUri(), input.getETag(), input
|
||||||
.getCreationDate(), input.getLastModified(), userMetaData);
|
.getCreationDate(), input.getLastModified(), userMetaData,
|
||||||
|
input.getSize());
|
||||||
}
|
}
|
||||||
return input;
|
return input;
|
||||||
}
|
}
|
||||||
|
|
|
@ -63,6 +63,7 @@ public class ObjectToBlobMetadata implements Function<GoogleCloudStorageObject,
|
||||||
} else {
|
} else {
|
||||||
to.setType(StorageType.BLOB);
|
to.setType(StorageType.BLOB);
|
||||||
}
|
}
|
||||||
|
to.setSize(from.size());
|
||||||
return to;
|
return to;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue