Allow writing empty content to new file
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
This commit is contained in:
parent
89f92e3c22
commit
ee23906c3c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue