was_list()

Description:

List files in Windows Azure Storage buckets or the specified bucket.

Syntax:

was_list(fd,[bucket])

Note:

External library function (See External Library Guide).

 

The function lists files in Windows Azure Storage buckets or the specified bucket and returns a table sequence containing the files or certain properties of the storage buckets.

 

It lists all files in the specified storage bucket bucket when all parameters are present; in the returned table sequence, Key field contains file names, Size field records file sizes in the unit of byte, and Date field is the creation time or the last modified time of the current file.

 

It lists all WAS storage buckets when parameter bucket is absent; in the returned table sequence, Key field represents the storage bucket name and Size field won’t be displayed.

Parameter:

fd

WAS connection object.

bucket

Storage bucket name.

Return value:

Table sequence

Example:

 

A

 

1

=was_open("mywas","MSU4nLvFd+uYaFw8EtB2GzJ8e==","core.windows.net","https")

 

2

=was_list(A1,"test1")

Return a list of names of all files in storage bucket named test1.

3

=was_list(A1)

Return a list of storage buckets.

4

>was_close(A1)

Close the WAS connection.