• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/io/filesystementry.php
  • Класс: BitrixMainIOFileSystemEntry
  • Вызов: FileSystemEntry::rename
public function rename($newPath)
{
	$newPathNormalized = Path::normalize($newPath);

	$success = true;
	if ($this->isExists())
		$success = rename($this->getPhysicalPath(), Path::convertLogicalToPhysical($newPathNormalized));

	if ($success)
	{
		$this->originalPath = $newPath;
		$this->path = $newPathNormalized;
		$this->pathPhysical = null;
	}

	return $success;
}