• Модуль: webdav
  • Путь к файлу: ~/bitrix/modules/webdav/classes/webdavstorage.php
  • Класс: CWebDavStorageCore
  • Вызов: CWebDavStorageCore::searchFilesByPropFind
protected function searchFilesByPropFind($version, $path = '/', array $miscOptions = array())
{
	$storageId = $this->getStorageId();
	$version = convertTimeStamp((int)$version, 'FULL');
	$options = array_merge(array('path' => $path, 'depth' => '10000'), $miscOptions);
	CTimeZone::Disable();
	/** @noinspection PhpUndefinedVariableInspection */
	$result  = $this->getWebDav()->propFind($options, $files, array(
		'COLUMNS' => array(),
		'return'  => 'array',
		//todo fix to $arParentPerms = $this->GetPermissions in CWebDavIblock::_get_mixed_list()
		'PARENT_ID' => $storageId['IBLOCK_SECTION_ID'],
		'FILTER'  => array(
			'timestamp_1' => $version,
		),
		'NON_TRASH_SECTION' => true,
		'NON_OLD_DROPPED_SECTION' => true,
		'NON_DROPPED_SECTION' => true,
	));
	CTimeZone::Enable();

	if(!is_array($result))
	{
		return array();
	}

	return $this->formatFilesToResponse($result['RESULT']?: array(), !empty($miscOptions['underSymlink']));
}