• Модуль: intranet
  • Путь к файлу: ~/bitrix/modules/intranet/lib/internals/updater.php
  • Класс: BitrixIntranetInternalsUpdater
  • Вызов: Updater::syncKernel
protected function syncKernel($fromPath, $toPath)
{
	foreach (static::getSubdirs($this->updaterPath . '/' . $fromPath) as $item)
	{
		$fromItemPath = $fromPath . '/' . $item;
		$toItemPath  = $toPath . '/' . $item;

		if (!is_dir($this->updaterPath . '/' . $fromItemPath))
		{
			continue;
		}

		if (!is_dir($this->kernelPath . '/' . $toItemPath))
		{
			if (empty($this->params[$fromItemPath]['new']) && empty($this->params['kernel'][$fromItemPath]['new']))
			{
				continue;
			}

			if (file_exists($this->kernelPath . '/' . $toItemPath))
			{
				continue;
			}
		}

		$this->updater->copyFiles($fromItemPath, $toItemPath);
	}
}