diff --git a/lib/private/files/view.php b/lib/private/files/view.php
index c9c1fc3c1bc9b84b9003908f60ea9fe0b6f6745a..51eefb9dac723b1a19a82647a226f1b0858b5c81 100644
--- a/lib/private/files/view.php
+++ b/lib/private/files/view.php
@@ -884,7 +884,7 @@ class View {
 							if ($extOnly && $subStorage instanceof \OC\Files\Storage\Shared) {
 								continue;
 							}
-							$subCache = $subStorage->getCache($internalPath);
+							$subCache = $subStorage->getCache('');
 							$rootEntry = $subCache->get($internalPath);
 							$data['size'] += isset($rootEntry['size']) ? $rootEntry['size'] : 0;
 						}