MCPcopy
hub / github.com/AutoMaker-Org/automaker / pathsEqual

Function pathsEqual

apps/ui/src/lib/utils.ts:117–120  ·  view source on GitHub ↗
(p1: string | undefined | null, p2: string | undefined | null)

Source from the content-addressed store, hash-verified

115 * Normalizes both paths to forward slashes before comparison.
116 */
117export 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.

Callers 13

confirmDeleteSessionFunction · 0.90
SessionManagerFunction · 0.90
BoardViewFunction · 0.90
GraphViewPageFunction · 0.90
GitHubIssuesViewFunction · 0.90
FileEditorViewFunction · 0.90
isWorktreeSelectedFunction · 0.90
useDevServerLogsFunction · 0.90
useWorktreesFunction · 0.90
useTestLogsFunction · 0.90
useNotificationEventsFunction · 0.90

Calls 1

normalizePathFunction · 0.70

Tested by

no test coverage detected