Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 390837ca authored by Alexandre Roux's avatar Alexandre Roux
Browse files

if files-control quota wrapper is enable, exclude recovery

parent 9e603708
Loading
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
--- lib/private/legacy/OC_Helper.php	2025-02-20 10:12:51.017628329 +0100
+++ lib/private/legacy/OC_Helper-new.php	2025-02-20 10:13:22.904956021 +0100
@@ -540,6 +540,9 @@
 			/** @var \OC\Files\Storage\Wrapper\Quota $storage */
 			$quota = $sourceStorage->getQuota();
 		}
+		if ($sourceStorage->instanceOfStorage('\OCA\FilesControls\Filesystem\QuotaWrapper')) {
+			$used = $sourceStorage->correctUsedStorage($used);
+		}
 		try {
 			$free = $sourceStorage->free_space($rootInfo->getInternalPath());
 			if (is_bool($free)) {
 No newline at end of file