Browse Source

fix(Storage\Local): Do not call getSourcePath() on SplFileInfo

Signed-off-by: provokateurin <kate@provokateurin.de>
pull/48015/head
provokateurin 1 year ago
parent
commit
5bbe535c27
Failed to extract signature
  1. 2
      lib/private/Files/Storage/Local.php

2
lib/private/Files/Storage/Local.php

@ -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;

Loading…
Cancel
Save