> +         to.setPublicUri(from.uri());
> +      }
> +      to.setUri(from.uri());
> +      to.setETag(from.etag());
> +      to.setName(from.name());
> +      to.setLastModified(from.lastModified());
> +      to.setContentMetadata(from.payload().getContentMetadata());
> +      
> to.getContentMetadata().setContentMD5(base16().lowerCase().decode(from.etag()));
> +      to.setUserMetadata(from.metadata());
> +      String directoryName = ifDirectoryReturnName.execute(to);
> +      if (directoryName != null) {
> +         to.setName(directoryName);
> +         to.setType(StorageType.RELATIVE_PATH);
> +      } else {
> +         to.setType(StorageType.BLOB);
> +      }

Do we have or need tests for this logic?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/33/files#r7235177

Reply via email to