- Модуль: main
- Путь к файлу: ~/bitrix/modules/main/classes/general/zip.php
- Класс: CZip
- Вызов: CZip::_createArchive
private function _createArchive($arFilesList, &$arResultList, &$arParams)
{
$addDir = $arParams['add_path'];
$removeDir = $arParams['remove_path'];
$removeAllDir = $arParams['remove_all_path'];
if (($res = $this->_openFile('wb')) != 1)
{
return $res;
}
$res = $this->_addList($arFilesList, $arResultList, $addDir, $removeDir, $removeAllDir, $arParams);
$this->_closeFile();
return $res;
}