diff --git a/lib/private/Files/Node/Folder.php b/lib/private/Files/Node/Folder.php index 2e061bd4cc..c5e1776dc1 100644 --- a/lib/private/Files/Node/Folder.php +++ b/lib/private/Files/Node/Folder.php @@ -189,7 +189,7 @@ class Folder extends Node implements \OCP\Files\Folder { } else { $result = $this->view->touch($fullPath); } - if (!$result) { + if ($result === false) { throw new NotPermittedException('Could not create path'); } $node = new File($this->root, $this->view, $fullPath);