Skip to content

Commit

Permalink
fix(Storage\Local): Do not call getSourcePath() on SplFileInfo
Browse files Browse the repository at this point in the history
Signed-off-by: provokateurin <[email protected]>
  • Loading branch information
provokateurin authored and backportbot[bot] committed Sep 15, 2024
1 parent f2deb77 commit eb3c1a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Files/Storage/Local.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit eb3c1a2

Please sign in to comment.