Merge pull request #48021 from nextcloud/backport/48015/stable30

This commit is contained in:
John Molakvoæ 2024-09-15 18:50:35 +02:00 committed by GitHub
commit 58f4320a64
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -106,7 +106,7 @@ class Local extends \OC\Files\Storage\Common {
* @var \SplFileInfo $file
*/
$file = $it->current();
clearstatcache(true, $this->getSourcePath($file));
clearstatcache(true, $file->getRealPath());
if (in_array($file->getBasename(), ['.', '..'])) {
$it->next();
continue;