We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1499c8c commit 575004fCopy full SHA for 575004f
apps/dav/lib/Upload/UploadHome.php
@@ -14,6 +14,7 @@
14
use OCP\Files\NotFoundException;
15
use OCP\IUserSession;
16
use Sabre\DAV\Exception\Forbidden;
17
+use Sabre\DAV\Exception\NotFound;
18
use Sabre\DAV\ICollection;
19
20
class UploadHome implements ICollection {
@@ -49,7 +50,12 @@ public function getChildren(): array {
49
50
}
51
52
public function childExists($name): bool {
- return !is_null($this->getChild($name));
53
+ try {
54
+ $this->getChild($name);
55
+ return true;
56
+ } catch (NotFound $e) {
57
+ return false;
58
+ }
59
60
61
public function delete() {
0 commit comments