Skip to main content

Unarchive directory

Unpacks 7z 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["SevenZ_ArchivePath"];
DestinateDirectory = Parameters["SevenZ_DestDir"];

Result = OPI_7z.UnarchiveDirectory(ArchivePath, DestinateDirectory);
oint 7z UnarchiveDirectory \
--src "/tmp//opi_sevenz_63920079973933/archive.7z" \
--dest "/tmp//opi_sevenz_63920079973933/out"
Result
{
"result": true
}