• Модуль: disk
  • Путь к файлу: ~/bitrix/modules/disk/lib/focuscontroller.php
  • Класс: BitrixDiskFocusController
  • Вызов: FocusController::processActionOpenFolderList
protected function processActionOpenFolderList()
{
	if(!$this->checkRequiredGetParams(array('folderId')))
	{
		$this->sendJsonErrorResponse();
	}

	/** @var Folder $folder */
	$folder = Folder::loadById((int)$this->request->getQuery('folderId'), array('STORAGE'));
	if(!$folder)
	{
		$this->errorCollection->addOne(new Error('Could not find folder', self::ERROR_COULD_NOT_FIND_FILE));
		$this->showNotFound();
	}
	if(!$folder->canRead($folder->getStorage()->getCurrentUserSecurityContext()))
	{
		$this->errorCollection->addOne(new Error('Could not find folder', self::ERROR_COULD_NOT_READ_FILE));
		$this->showNotFound();
	}

	$urlManager = Driver::getInstance()->getUrlManager();
	LocalRedirect(
		$urlManager->encodeUrn(
			$urlManager->getPathFolderList($folder)
		)
	);
}