• Модуль: webdav
  • Путь к файлу: ~/bitrix/modules/webdav/classes/file.php
  • Класс: CWebDavFile
  • Вызов: CWebDavFile::GetMetaID
function GetMetaID($sMetaName)
{
	$io = self::GetIo();
	if (isset($this->meta_names[$sMetaName]))
	{
		//$file = $io->CombinePath($this->real_path_full, $this->meta_names[$sMetaName]['name']);
		$file = CWebDavBase::CleanRelativePathString($this->meta_names[$sMetaName]['name'], $this->real_path_full);
		if($file === false)
		{
			return null;
		}
		if ($io->FileExists($file))
		{
			return "/".$this->meta_names[$sMetaName]['name'];
		}
		else
		{
			$stat = $io->CreateDirectory($file);
			return "/".$this->meta_names[$sMetaName]['name'];
		}
	}
	return null;
}