apps/files_sharing/lib/Controller/RemoteController.php
/**
	 * @param array $share Share with info from the share_external table
	 * @return array enriched share info with data from the filecache
	 */
@param array $share Share with info from the share_external table
@return array enriched share info with data from the filecache
@param array $share Share with info from the share_external table @return array enriched share info with data from the filecache
private static function extendShareInfo($share) {
		$view = new \OC\Files\View('/' . \OC_User::getUser() . '/files/');
		$info = $view->getFileInfo($share['mountpoint']);
		$share['mimetype'] = $info->getMimetype();
		$share['mtime'] = $info->getMTime();
		$share['permissions'] = $info->getPermissions();
		$share['type'] = $info->getType();
		$share['file_id'] = $info->getId();
		return $share;
	}
private static function extendShareInfo ( $ share ) { $ view = new \ OC \ Files \ View ( '/' . \ OC_User :: getUser ( ) . '/files/' ) ; $ info = $ view -> getFileInfo ( $ share [ 'mountpoint' ] ) ; $ share [ 'mimetype' ] = $ info -> getMimetype ( ) ; $ share [ 'mtime' ] = $ info -> getMTime ( ) ; $ share [ 'permissions' ] = $ info -> getPermissions ( ) ; $ share [ 'type' ] = $ info -> getType ( ) ; $ share [ 'file_id' ] = $ info -> getId ( ) ; return $ share ; }
@param array $share Share with info from the share_external table
 @return array enriched share info with data from the filecache
@param array $share Share with info from the share_external table @return array enriched share info with data from the filecache