diff options
author | Georg Ehrke <developer@georgehrke.com> | 2020-08-13 15:41:26 +0200 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2020-08-13 15:41:26 +0200 |
commit | ee23906c3c1a283e0fc47627f90f772ef48fb5e7 (patch) | |
tree | ea502fe21755a212b16adf40afb05a9b78c0caaf /lib/private/Files/Node | |
parent | 89f92e3c2267f85aeb37714b5a5a1b7985e84c7d (diff) | |
download | nextcloud-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.php | 2 |
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); |