• Модуль: transformer
  • Путь к файлу: ~/bitrix/modules/transformer/lib/file.php
  • Класс: BitrixTransformerFile
  • Вызов: File::createByPath
private function createByPath($path)
{
	try
	{
		$ioFile = new IOFile($path);
	}
	catch(InvalidPathException $exception)
	{
		return;
	}
	if($ioFile->isExists())
	{
		$this->ioFile = $ioFile;
		$this->size = $this->ioFile->getSize();
		$path = $this->ioFile->getPath();
		$this->absolutePath = $path;
	}
}