* Checks if a file path is a symbolic link that points to a file.
(filePath: string)
| 185 | * Checks if a file path is a symbolic link that points to a file. |
| 186 | */ |
| 187 | private isFileSymlink(filePath: string): boolean { |
| 188 | try { |
| 189 | return !fs.readlinkSync(filePath).endsWith('/'); |
| 190 | } catch (_error) { |
| 191 | return false; |
| 192 | } |
| 193 | } |
| 194 | } |