Merge pull request #22237 from nextcloud/bugfix/noid/allow_putContent_empty_string
Allow writing empty content to new file
This commit is contained in:
commit
af3a59fab5
|
@ -189,7 +189,7 @@ class Folder extends Node implements \OCP\Files\Folder {
|
||||||
} else {
|
} else {
|
||||||
$result = $this->view->touch($fullPath);
|
$result = $this->view->touch($fullPath);
|
||||||
}
|
}
|
||||||
if (!$result) {
|
if ($result === false) {
|
||||||
throw new NotPermittedException('Could not create path');
|
throw new NotPermittedException('Could not create path');
|
||||||
}
|
}
|
||||||
$node = new File($this->root, $this->view, $fullPath);
|
$node = new File($this->root, $this->view, $fullPath);
|
||||||
|
|
Loading…
Reference in New Issue