Skip to content

Commit

Permalink
Fix simlink refucktor
Browse files Browse the repository at this point in the history
  • Loading branch information
frankdejonge committed Oct 8, 2024
1 parent 20f64cd commit ea85425
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Local/LocalFilesystemAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit ea85425

Please sign in to comment.