• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/tar_gz.php
  • Класс: CArchiver
  • Вызов: CArchiver::_openRead
private function _openRead()
{
	if ($this->_bCompress)
	{
		$this->_dFile = @gzopen($this->io->GetPhysicalName($this->_strArchiveName), "rb");
	}
	else
	{
		$this->_dFile = @fopen($this->io->GetPhysicalName($this->_strArchiveName), "rb");
	}

	if (!$this->_dFile)
	{
		$this->_arErrors[] = ["ERR_OPEN", str_replace("#FILE_NAME#", removeDocRoot($this->_strArchiveName), GetMessage("MAIN_ARCHIVE_ERR_OPEN"))];

		return false;
	}

	return true;
}