Qload()

Read(1870) Label: cloud storage, upload, download,

Description:

Upload file(s)/homo-name files group to or download them from the remote storage.

Syntax:

Qload(lfn:z,rfn:z)

Note:

Put file(s)/homo-name files group to be uploaded to the remote storage or those to be downloaded to the local in the specified directory.

 

When QVS is service mode, the specified directory is QVM’s main directory; when QVS uses debug mode, it is QVS’s own main directory. If no remote storage information is configured in the QVS application configuration file, configureRemote Services –> Storage Service Settingsin esProc IDE and connect the target cloud storage service before using the function directly in esProc IDE.

 

Automatically overwrite the namesake file(s).

Parameter:

lfn

A local file, whose format is “storageBucket/fileObjectName”; means download when omitted

rfn

A file in the storage bucket, whose format is the same as parameter lfn; means upload when omitted

z

Specify this parameter when parameter lfn/rfn is a homo-name files group, the parameter is a zone table number or a sequence of zone table number

Return value:

Boolean value

Example:

 

A

 

1

=Qload("qtc01/emp.ctx":[1,2])

Upload homo-name files group 1.emp.ctx and 2.emp.ctx in the local directorymain directory\qtc01 to storage bucket qt01 in the cloud storage.

2

=Qload(,"qtc01/emp.ctx":[1,2])

Download homo-name files group 1.emp.ctx and 2.emp.ctx in storage bucket qtc01 to the local directory main directory\qtc01.

3

=Qload("myBucket/cities.txt")

Upload the local file cities.txt inmain directory\myBucket\ to storage bucket myBucket