mirror of https://github.com/apache/jclouds.git
Add multipart? option to put-blob.
This commit is contained in:
parent
aa89a53b86
commit
27189fba21
|
@ -224,8 +224,10 @@ Options can also be specified for extension modules
|
||||||
|
|
||||||
(defn put-blob
|
(defn put-blob
|
||||||
"Put a blob. Metadata in the blob determines location."
|
"Put a blob. Metadata in the blob determines location."
|
||||||
[^BlobStore blobstore container-name blob]
|
[^BlobStore blobstore container-name blob & {:keys [multipart?]}]
|
||||||
(.putBlob blobstore container-name blob))
|
(if multipart?
|
||||||
|
(.putBlobMultipart blobstore container-name blob)
|
||||||
|
(.putBlob blobstore container-name blob)))
|
||||||
|
|
||||||
(defn blob-metadata
|
(defn blob-metadata
|
||||||
"Get metadata from given path"
|
"Get metadata from given path"
|
||||||
|
|
Loading…
Reference in New Issue