We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 107941d commit bdb9c28Copy full SHA for bdb9c28
1 file changed
src/Service/SymlinkCleaner.php
@@ -100,7 +100,13 @@ public function cleanSymlinks(
100
*/
101
private function isSymlink(string $path): bool
102
{
103
- return is_link($path);
+ try {
104
+ $stat = $this->fileDriver->stat($path);
105
+ } catch (\Exception $e) {
106
+ return false;
107
+ }
108
+
109
+ return (($stat['mode'] ?? 0) & 0120000) === 0120000;
110
}
111
112
/**
0 commit comments