(p1: string | undefined | null, p2: string | undefined | null)
| 115 | * Normalizes both paths to forward slashes before comparison. |
| 116 | */ |
| 117 | export function pathsEqual(p1: string | undefined | null, p2: string | undefined | null): boolean { |
| 118 | if (!p1 || !p2) return p1 === p2; |
| 119 | return normalizePath(p1) === normalizePath(p2); |
| 120 | } |
| 121 | |
| 122 | /** |
| 123 | * Detect if running on macOS. |
no test coverage detected