From 91e5943731db0d5f9ffe8ed3c2fdc2c5209943b8 Mon Sep 17 00:00:00 2001 From: CK1-CK <65177756+CK1-CK@users.noreply.github.com> Date: Tue, 1 Nov 2022 10:56:19 +0100 Subject: [PATCH] Update FilesPlugin.php "External Storage Error. Directory not found" With return value type "float" there is no error anymore. https://help.nextcloud.com/t/cannot-access-files-after-upgrade-to-nextcloud-25/147823/4 Signed-off-by: CK1-CK <65177756+CK1-CK@users.noreply.github.com> --- apps/dav/lib/Connector/Sabre/FilesPlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dav/lib/Connector/Sabre/FilesPlugin.php b/apps/dav/lib/Connector/Sabre/FilesPlugin.php index 54919824864a7..b067dd64bc8af 100644 --- a/apps/dav/lib/Connector/Sabre/FilesPlugin.php +++ b/apps/dav/lib/Connector/Sabre/FilesPlugin.php @@ -352,7 +352,7 @@ public function handleGetProperties(PropFind $propFind, \Sabre\DAV\INode $node) $propFind->handle(self::HAS_PREVIEW_PROPERTYNAME, function () use ($node) { return json_encode($this->previewManager->isAvailable($node->getFileInfo())); }); - $propFind->handle(self::SIZE_PROPERTYNAME, function () use ($node): ?int { + $propFind->handle(self::SIZE_PROPERTYNAME, function () use ($node): ?float { return $node->getSize(); }); $propFind->handle(self::MOUNT_TYPE_PROPERTYNAME, function () use ($node) {