diff --git a/lib/private/Files/Storage/Local.php b/lib/private/Files/Storage/Local.php index 2c90a28fe3b0a..8a8e570d50264 100644 --- a/lib/private/Files/Storage/Local.php +++ b/lib/private/Files/Storage/Local.php @@ -142,7 +142,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;