[io.file.unzip]
io.file.unzip is a slot in the io namespace, in Hyperlambda, the language of Magic Cloud. Extracts a zip archive on the server.
- Value (
zip-file), required: Zip archive path to extract
Arguments
Required arguments come first, then the optional ones in the order they are declared.
| Argument | Type | Required | Description |
|---|---|---|---|
[folder] |
string | no | Destination folder; defaults to the zip file’s folder. |
[overwrite] |
bool | no | Whether existing extracted files should be overwritten. Default: false. |
Guide: How to use [io.file.unzip]
JSON declaration
This is the complete declaration of io.file.unzip, as the running system describes it. It is also published as slot.json.
JSON declaration
{
"name": "io.file.unzip",
"description": "Extracts a zip archive on the server",
"signature": {
"input": {
"kind": "zip-file",
"description": "Zip archive path to extract",
"required": true,
"mode": "ValueOrExpression"
},
"children": {
"folder": {
"type": "string",
"kind": "folder-path",
"description": "Destination folder; defaults to the zip file's folder",
"required": false,
"mode": "ValueOrExpression",
"cardinality": "ZeroOrOne"
},
"overwrite": {
"type": "bool",
"kind": "boolean",
"description": "Whether existing extracted files should be overwritten",
"required": false,
"mode": "ValueOrExpression",
"cardinality": "ZeroOrOne",
"default": "false"
}
}
}
}
← io.file.search |
all io.* slots |
io.folder.copy → |