diff --git a/lib/private/Files/Node/Folder.php b/lib/private/Files/Node/Folder.php index d9639e9f1abf9..1da535c0efe03 100644 --- a/lib/private/Files/Node/Folder.php +++ b/lib/private/Files/Node/Folder.php @@ -188,7 +188,7 @@ public function newFile($path, $content = null) { } 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);