> +         throw new UnsupportedOperationException("B2 only supports private 
> access blobs");
> +      }
> +
> +      if (options.isMultipart()) {
> +         return putMultipartBlob(container, blob, options);
> +      } else {
> +         String contentSha1;
> +         try {
> +            contentSha1 = 
> ByteStreams2.hashAndClose(blob.getPayload().openStream(), 
> Hashing.sha1()).toString();
> +         } catch (IOException ioe) {
> +            throw Throwables.propagate(ioe);
> +         }
> +
> +         String name = blob.getMetadata().getName();
> +
> +         // B2 versions all files so we store the original fileId to delete 
> it after the upload succeeds

The implemented behavior matches other blobstores.  Otherwise if a user issues 
an overwrite followed by a delete, the original file reappears.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/288/files/80e8fd4b2040ca8ea637d1efc1ab83000dcbe293#r67775394

Reply via email to