Skip to main content

Unarchive directory

Extracts RAR archive to the specified directory

Function UnarchiveDirectory(Val Archive, Val DestinationDirectory = "", Val Password = "") Export

ParameterCLI optionTypeRequiredDescription
Archive--srcString, BinaryDataPath to the archive on disk or binary data
DestinationDirectory--destStringDirectory path for unpacking. To binary data if not filled
Password--passwordStringarchive password, if required
Returns

Map Of KeyAndValue - Execution information

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);
oint rar UnarchiveDirectory \
--src "/tmp/ap2eotv3.v4g"
Result
{
"result": true
}