最終更新日:2022-12-15 11:03:07
Here we give an example to show how to decompress a zip file on Object Storage.
File Decompression is a VAS of Object Storage, please make sure you have enabled this feature before using it. Contact your customer service for more details.
The Custom command follows the format below:
<op>/<format>/<dir>/<crush/no.>/<p>|<saveas/url_safe_base64>
Parameters | Required | Details |
---|---|---|
<op> | Yes | Specify the operation,put in “decompression” to decompress a package. |
<format> | Yes | The format of the package to be decompressed, support zip, tar, gzip, 7z and rar. |
<dir> | No | Output the decompressed files to a specified path, you have to put a base64 encoded string of “bucket:path”, for example base64(bucketname:folder1/folder2). Decompressed files are placed under the folder that raw package is in by default. |
<crush/no.> | No | Use “crush” to specify whether to delete the raw package and keep the index file. 0–Delete the raw package and don’t keep index file. 1–Delete the raw package and keep index file. 2–Keep both raw package and index file. |
<p> | No | The password to decompress the package if need. Only available for zip and rar. |
<saveas/url_safe_base64> | No | Name the output file, you have to put an url safe base64 encoded string of format “bucket:filename”. |