• Модуль: disk
  • Путь к файлу: ~/bitrix/modules/disk/lib/file.php
  • Класс: BitrixDiskFile
  • Вызов: File::moveTo
public function moveTo(Folder $folder, $movedBy, $generateUniqueName = false)
{
	if(Configuration::isEnabledObjectLock())
	{
		$objectLock = $this->getLock();
		if($objectLock && $objectLock->isExclusive() && !$objectLock->canUnlock($movedBy))
		{
			$this->errorCollection[] = new Error(Loc::getMessage('DISK_FILE_MODEL_ERROR_EXCLUSIVE_LOCK'), self::ERROR_EXCLUSIVE_LOCK);
			return null;
		}
	}

	return parent::moveTo($folder, $movedBy, $generateUniqueName);
}