• Модуль: webdav
  • Путь к файлу: ~/bitrix/modules/webdav/classes/virtual.php
  • Класс: CWebDavVirtual
  • Вызов: CWebDavVirtual::_get_fileinfo
function _get_fileinfo($path)
{
	$fspath = $path;
	if (!empty($this->real_path_full))
	{
		if (mb_strpos($path, $this->real_path_full) === false)
			$fspath = str_replace(array("///", "//"), "/", $this->real_path_full."/".$path);
		else 
			$path = str_replace(array($this->real_path_full, "///", "//"), "/", $path);
	}
	
	$path = str_replace(array('////', '///','//'),'/', $path);

	$info = array();
	$info['path'] = $this->_slashify($path);
	if (SITE_CHARSET != "UTF-8")
	{
		$info['path'] = $GLOBALS["APPLICATION"]->ConvertCharset($info['path'], SITE_CHARSET, "UTF-8");
	}
	$info['props'] = array();
	$year = date("Y");

	$info['props'][] = $this->_mkprop('resourcetype', 'collection');
	$info['props'][] = $this->_mkprop('getcontenttype', 'httpd/unix-directory');
	
	return $info;
}