diff --git a/lib/private/Files/Storage/Local.php b/lib/private/Files/Storage/Local.php index bb07ce3ab29fa..811a000ad6f9c 100644 --- a/lib/private/Files/Storage/Local.php +++ b/lib/private/Files/Storage/Local.php @@ -106,7 +106,7 @@ public function rmdir($path) { * @var \SplFileInfo $file */ $file = $it->current(); - clearstatcache(true, $this->getSourcePath($file)); + clearstatcache(true, $file->getRealPath()); if (in_array($file->getBasename(), ['.', '..'])) { $it->next(); continue;