diff options
Diffstat (limited to 'lib/private/Files/Node/Node.php')
-rw-r--r-- | lib/private/Files/Node/Node.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Files/Node/Node.php b/lib/private/Files/Node/Node.php index 385d45f1e3e..082851a2888 100644 --- a/lib/private/Files/Node/Node.php +++ b/lib/private/Files/Node/Node.php @@ -70,8 +70,8 @@ class Node implements INode { * @param FileInfo $fileInfo */ public function __construct(IRootFolder $root, $view, $path, $fileInfo = null, ?INode $parent = null, bool $infoHasSubMountsIncluded = true) { - if (Filesystem::normalizePath($view->getRoot()) !== '/') { - throw new PreConditionNotMetException('The view passed to the node should not have any fake root set'); + if ($view->getRoot() !== '') { + throw new PreConditionNotMetException('The view passed to the node should not have any fake root set: ' . $view->getRoot()); } $this->view = $view; $this->root = $root; |