put_object: Put object

Description Usage Arguments Value See Also Examples

Description

Puts an object into an Qingstor bucket

Usage

1
put_object(file, object, bucket, headers = list(), ...)

Arguments

file

A character string containing the filename (or full path) of the file you want to upload to Qingstor.

object

A character string containing the name the object should have in Qingstor (i.e., its "object key"). If missing, the filename is used.

bucket

Character string with the name of the bucket.

headers

List of request headers for the REST call.

folder

A character string specify the folder name in the bucket. Optional

Value

If successful, TRUE, otherwise an qingstor_error object.

See Also

delete_object

Examples

1
2
3
# put an object in Qingstor bucket
tempPath <- file.path("path","to","folder","xxxx.csv")
put_object(file = tempPath , object = basename(tempPath),folder = 'folder_name', bucket = 'bucket_name')

zhangxing-love/QingStorRSDK_0.1 documentation built on May 4, 2019, 10:17 p.m.