aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Node
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2020-08-13 15:41:26 +0200
committerGeorg Ehrke <developer@georgehrke.com>2020-08-13 15:41:26 +0200
commitee23906c3c1a283e0fc47627f90f772ef48fb5e7 (patch)
treeea502fe21755a212b16adf40afb05a9b78c0caaf /lib/private/Files/Node
parent89f92e3c2267f85aeb37714b5a5a1b7985e84c7d (diff)
downloadnextcloud-server-ee23906c3c1a283e0fc47627f90f772ef48fb5e7.tar.gz
nextcloud-server-ee23906c3c1a283e0fc47627f90f772ef48fb5e7.zip
Allow writing empty content to new file
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'lib/private/Files/Node')
-rw-r--r--lib/private/Files/Node/Folder.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Node/Folder.php b/lib/private/Files/Node/Folder.php
index d9639e9f1ab..1da535c0efe 100644
--- a/lib/private/Files/Node/Folder.php
+++ b/lib/private/Files/Node/Folder.php
@@ -188,7 +188,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);