exit;
}
+\OC_User::setIncognitoMode(true);
+
$file = array_key_exists('file', $_GET) ? (string) urldecode($_GET['file']) : '';
$maxX = array_key_exists('x', $_GET) ? (int) $_GET['x'] : '36';
$maxY = array_key_exists('y', $_GET) ? (int) $_GET['y'] : '36';
$userId = $linkedItem['uid_owner'];
\OC_Util::setupFS($userId);
+\OC\Files\Filesystem::initMountPoints($userId);
+$view = new \OC\Files\View('/' . $userId . '/files');
$pathId = $linkedItem['file_source'];
-$path = \OC\Files\Filesystem::getPath($pathId);
-$pathInfo = \OC\Files\Filesystem::getFileInfo($path);
+$path = $view->getPath($pathId);
+$pathInfo = $view->getFileInfo($path);
$sharedFile = null;
if($linkedItem['item_type'] === 'folder') {
if($linkedItem['item_type'] === 'file') {
$parent = $pathInfo['parent'];
- $path = \OC\Files\Filesystem::getPath($parent);
+ $path = $view->getPath($parent);
$sharedFile = $pathInfo['name'];
}