• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/quota.php
  • Класс: CDiskQuota
  • Вызов: CDiskQuota::Recount
public function Recount($id, $recount=false)
{
	if ((COption::GetOptionInt("main", "disk_space") <= 0))
		return true;

	if ($id != "files" && (!is_dir($_SERVER['DOCUMENT_ROOT']."/".$id)))
		return array("status" => "error");

	if ($id == "files")
	{
		$result = $this->SetDirSize("", "files", $recount, array("bitrix"));
	}
	else
	{
		$result = $this->SetDirSize($id, "", $recount);
	}

	if (empty($result["time"]))
	{
		$result["time"] = time();
	}
	return $result;
}