> + @Override
> + public boolean directoryExists(String containerName, String directory) {
> + return api.objectApiInRegionForContainer(region.getId(),
> containerName) //
> + .head(directory) != null;
> + }
> +
> + @Override
> + public void createDirectory(String containerName, String directory) {
> + api.objectApiInRegionForContainer(region.getId(), containerName) //
> + .replace(directory, directoryPayload, ImmutableMap.<String,
> String> of());
> + }
> +
> + private final Payload directoryPayload = new ByteArrayPayload(new byte[]
> {}) {
> + {
> + getContentMetadata().setContentType("application/directory");
> + }
Am I getting this right...an anonymous subtype of ByteArrayPayload with a
static initializer? Does
`getContentMetadata().setContentType("application/directory");` work there?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/34/files#r7235192