Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion apps/dav/lib/Upload/UploadHome.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use OCP\Files\NotFoundException;
use OCP\IUserSession;
use Sabre\DAV\Exception\Forbidden;
use Sabre\DAV\Exception\NotFound;
use Sabre\DAV\ICollection;

class UploadHome implements ICollection {
Expand Down Expand Up @@ -49,7 +50,12 @@ public function getChildren(): array {
}

public function childExists($name): bool {
return !is_null($this->getChild($name));
try {
$this->getChild($name);
return true;
} catch (NotFound $e) {
return false;
}
}

public function delete() {
Expand Down
Loading