Description:
Delete or rename files/homo-name files group in the cloud storage.
Syntax:
Qmove(fn:z,path)
Note:
The function deletes or renames files/homo-name files group in the specified directory in the cloud storage. 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 cloud storage information is configured in the QVS application configuration file, configure【Remote Services –> Storage Service Settings】in esProc IDE and connect the target cloud storage service before using the function directly in esProc IDE.
Parameter fn is a file in the storage bucket. The absence of parameter path means deleting fn file from the cloud storage platform. The presence of both parameter fn and parameter path means renaming fn path.
Automatically overwrite the namesake file during renaming.
Will be parsed as movefile() function when no cloud storage information is configured.
Parameter:
fn |
File(s) in storage bucket, whose format is “storageBucket/fileObjectName” |
z |
It is zone table number or a sequence of zone table numbers; specify this parameter when fn is a homo-name files group |
path |
New name for parameter fn and has same format as fn; when bucketName is omitted from this parameter, use bucketName value specified in parameter fn |
Return value:
Boolean value
Example:
|
A |
|
1 |
=Qmove("myBucket/a.txt","b.txt") |
Rename a.txt in the storage bucket myBucket b.txt. |
2 |
=Qmove("myBucket/b.txt", "Bucket2/b2.txt") |
Rename b.txt in storage bucket myBucket b2.txt and move it to storage bucket Bucket2. |
3 |
=Qmove("myBucket/c1.txt") |
Delete c1.txt from storage bucket myBucket. |
4 |
=Qmove("myBucket/apps.ctx":[1,2],"test.ctx":[1,2]) |
Rename homo-name files group apps.ctx in storage bucket myBucket test.ctx. |