Unarchive directory
Extracts RAR archive to the specified directory
- Parameters
- Advanced call ?
Function UnarchiveDirectory(Val Archive, Val DestinationDirectory = "", Val Password = "") Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Archive | --src | String, BinaryData | ✔ | Path to the archive on disk or binary data |
| DestinationDirectory | --dest | String | ✖ | Directory path for unpacking. To binary data if not filled |
| Password | --password | String | ✖ | archive password, if required |
Returns
Map Of KeyAndValue - Execution information
| Parameter | Description |
|---|---|
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
tip
Parameters with Binary data type can also accept file paths on disk and URLs
1C:Enterprise/OneScript code example
ArchivePath = Parameters["RAR_ArchivePath"];
DestinateDirectory = Parameters["RAR_DestDir"];
Result = OPI_RAR.UnarchiveDirectory(ArchivePath, DestinateDirectory);
- Bash
- CMD/Bat
oint rar UnarchiveDirectory \
--src "/tmp/ap2eotv3.v4g"
oint rar UnarchiveDirectory ^
--src "/tmp/ap2eotv3.v4g"
Result
{
"result": true
}