Allow writing empty content to new file

Signed-off-by: Georg Ehrke <developer@georgehrke.com>
This commit is contained in:
Georg Ehrke 2020-08-13 15:41:26 +02:00
parent 89f92e3c22
commit ee23906c3c
No known key found for this signature in database
GPG Key ID: 9D98FD9380A1CB43
1 changed files with 1 additions and 1 deletions

View File

@ -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);