diff --git a/lib/private/files/view.php b/lib/private/files/view.php
index 51eefb9dac723b1a19a82647a226f1b0858b5c81..ff3cb9ee68b63216e768e9c3fd5a5ac069050e33 100644
--- a/lib/private/files/view.php
+++ b/lib/private/files/view.php
@@ -885,7 +885,7 @@ class View {
 								continue;
 							}
 							$subCache = $subStorage->getCache('');
-							$rootEntry = $subCache->get($internalPath);
+							$rootEntry = $subCache->get('');
 							$data['size'] += isset($rootEntry['size']) ? $rootEntry['size'] : 0;
 						}
 					}