- Модуль: webdav
- Путь к файлу: ~/bitrix/modules/webdav/classes/file.php
- Класс: CWebDavFile
- Вызов: CWebDavFile::put_commit
function put_commit(&$options)
{
$io = self::GetIo();
$file = $options["~path"];
/*if (strpos($file, $this->real_path_full) === false)
{
$file = $io->CombinePath($this->real_path_full, $file);
}*/
if (mb_strpos($file, $this->real_path_full) === 0)
{
$file = CWebDavBase::ConvertPathToRelative($file, $this->real_path_full);
}
$file = CWebDavBase::CleanRelativePathString($file, $this->real_path_full);
if($file === false)
{
return false;
}
$this->Reindex($file);
if (COption::GetOptionInt("main", "disk_space") > 0)
{
$oFile = $io->GetFile($file);
CDiskQuota::updateDiskQuota("file", $oFile->GetFileSize(), "add");
}
return true;
}