Merge pull request #48015 from nextcloud/fix/storage-local/get-source-path-spl-file-info

This commit is contained in:
Kate 2024-09-15 16:50:56 +02:00 committed by GitHub
commit e37a88225d
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;