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 e0e80c8 commit 8f2291dCopy full SHA for 8f2291d
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 {
@@ -72,7 +73,12 @@ public function getChildren(): array {
72
73
}
74
75
public function childExists($name): bool {
- return !is_null($this->getChild($name));
76
+ try {
77
+ $this->getChild($name);
78
+ return true;
79
+ } catch (NotFound $e) {
80
+ return false;
81
+ }
82
83
84
public function delete() {
0 commit comments