Merge pull request #22237 from nextcloud/bugfix/noid/allow_putContent_empty_string

Allow writing empty content to new file
This commit is contained in:
Roeland Jago Douma 2020-08-20 09:03:06 +02:00 committed by GitHub
commit af3a59fab5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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