apps/dav/lib/Connector/Sabre/FilesReportPlugin.php
/**
	 * Find Sabre nodes by file ids
	 *
	 * @param Node $rootNode root node for search
	 * @param array $fileIds file ids
	 * @return Node[] array of Sabre nodes
	 */
Find Sabre nodes by file ids
@param Node $rootNode root node for search
@param array $fileIds file ids
@return Node[] array of Sabre nodes
Find Sabre nodes by file ids @param Node $rootNode root node for search @param array $fileIds file ids @return Node [] array of Sabre nodes
public function findNodesByFileIds($rootNode, $fileIds) {
		$folder = $this->userFolder;
		if (trim($rootNode->getPath(), '/') !== '') {
			$folder = $folder->get($rootNode->getPath());
		}
		$results = [];
		foreach ($fileIds as $fileId) {
			$entry = $folder->getById($fileId);
			if ($entry) {
				$entry = current($entry);
				if ($entry instanceof \OCP\Files\File) {
					$results[] = new File($this->fileView, $entry);
				} else if ($entry instanceof \OCP\Files\Folder) {
					$results[] = new Directory($this->fileView, $entry);
				}
			}
		}
		return $results;
	}
public function findNodesByFileIds ( $ rootNode , $ fileIds ) { $ folder = $ this -> userFolder ; if ( trim ( $ rootNode -> getPath ( ) , '/' ) !== '' ) { $ folder = $ folder -> get ( $ rootNode -> getPath ( ) ) ; } $ results = [ ] ; foreach ( $ fileIds as $ fileId ) { $ entry = $ folder -> getById ( $ fileId ) ; if ( $ entry ) { $ entry = current ( $ entry ) ; if ( $ entry instanceof \ OCP \ Files \ File ) { $ results [ ] = new File ( $ this -> fileView , $ entry ) ; } else if ( $ entry instanceof \ OCP \ Files \ Folder ) { $ results [ ] = new Directory ( $ this -> fileView , $ entry ) ; } } } return $ results ; }
Find Sabre nodes by file ids
 @param Node $rootNode root node for search
 @param array $fileIds file ids
 @return Node[] array of Sabre nodes
Find Sabre nodes by file ids @param Node $rootNode root node for search @param array $fileIds file ids @return Node [] array of Sabre nodes