diff options
Diffstat (limited to 'apps/files_trashbin/lib/Sabre/PropfindPlugin.php')
-rw-r--r-- | apps/files_trashbin/lib/Sabre/PropfindPlugin.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files_trashbin/lib/Sabre/PropfindPlugin.php b/apps/files_trashbin/lib/Sabre/PropfindPlugin.php index a0aaa552a14..078f85da8f8 100644 --- a/apps/files_trashbin/lib/Sabre/PropfindPlugin.php +++ b/apps/files_trashbin/lib/Sabre/PropfindPlugin.php @@ -24,6 +24,7 @@ declare(strict_types=1); namespace OCA\Files_Trashbin\Sabre; +use OCA\DAV\Connector\Sabre\FilesPlugin; use Sabre\DAV\INode; use Sabre\DAV\PropFind; use Sabre\DAV\Server; @@ -64,6 +65,10 @@ class PropfindPlugin extends ServerPlugin { $propFind->handle(self::TRASHBIN_DELETION_TIME, function () use ($node) { return $node->getDeletionTime(); }); + + $propFind->handle(FilesPlugin::SIZE_PROPERTYNAME, function () use ($node) { + return $node->getSize(); + }); } } |