Skip to content
Closed
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
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 <[email protected]>
  • Loading branch information
CK1-CK authored Nov 1, 2022
commit 91e5943731db0d5f9ffe8ed3c2fdc2c5209943b8
2 changes: 1 addition & 1 deletion apps/dav/lib/Connector/Sabre/FilesPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down