s3_ list ()

Read(984) Label: s3, list,

Description:

List object in all buckets or the specified bucket.

Syntax:

s3_list(fd,[bucket])

Note:

External library function (See External Library Guide). It lists objects in the specified bucket. Unit of Size is byte; Date is date of creation or modification of the current file.

Parameter:

fd

S3 connection object

bucket

Bucket name; return the list of buckets in the current AWS S3

Return value:

A table sequence

Example:

 

A

 

1

=s3_open("ASIAVSPDUYZ7O7WTX7C3":"7/5xYPO7a+9Po+IE1ySbmu9UB2hWIkWek1Sqn6E4":"us-east-2":"https://s3.us-east-2.amazonaws.com")

Connect to AWS S3

2

=s3_list(A1)

Return a list of buckets in service A1

3

=s3_list(A1, "test1")

List all file objects in bucket test1

4

>s3_close(A1)

Close AWS S3 connection