> +
> +      if (!Strings.isNullOrEmpty(objectManifest)) {
> +         removeObjectsWithPrefix(objectManifest);
> +      }
> +   }
> +
> +   private String getObjectManifest(String container, String key) {
> +      MutableObjectInfoWithMetadata info = sync.getObjectInfo(container, 
> key);
> +      return info.getObjectManifest();
> +   }
> +
> +   private void removeObjectsWithPrefix(String containerAndPrefix) {
> +      int separatorIndex = containerAndPrefix.indexOf('/');
> +      if (separatorIndex < 0) {
> +         throw new IllegalArgumentException("No / separator found in \"" + 
> containerAndPrefix + "\"");
> +      }

Will change to use `checkArgument`.

`Splitter.on('/').split("container/firstpartofkey/secondpartofkey")` will 
return 3 strings, "container", "firstpartofkey" and "secondpartofkey" but I 
want "container" and "firstpartofkey/secondpartofkey" in that case.


---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/123/files#r5927097

Reply via email to