From ea85425dacca06330e08a25ba1fa1cdcbbc7a9cb Mon Sep 17 00:00:00 2001 From: Frank de Jonge Date: Wed, 25 Sep 2024 19:07:29 +0200 Subject: [PATCH] Fix simlink refucktor --- src/Local/LocalFilesystemAdapter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Local/LocalFilesystemAdapter.php b/src/Local/LocalFilesystemAdapter.php index e944c22f9..b872f8cbb 100644 --- a/src/Local/LocalFilesystemAdapter.php +++ b/src/Local/LocalFilesystemAdapter.php @@ -230,7 +230,7 @@ public function listContents(string $path, bool $deep): iterable yield $item; } } catch (Throwable $exception) { - if (file_exists($fileInfo->getFilename())) { + if ($exception instanceof SymbolicLinkEncountered || file_exists($fileInfo->getFilename())) { throw $exception; } }