MCPcopy Create free account
hub / github.com/arctic-cli/interface / pathsOverlap

Function pathsOverlap

packages/arctic/src/cli/recent-sessions.ts:105–107  ·  view source on GitHub ↗
(a: string, b: string)

Source from the content-addressed store, hash-verified

103}
104
105function pathsOverlap(a: string, b: string): boolean {
106 return isWithin(a, b) || isWithin(b, a)
107}
108
109function isWithin(target: string, base: string): boolean {
110 const relative = path.relative(base, target)

Callers 1

resolveProjectIDsForCwdFunction · 0.85

Calls 1

isWithinFunction · 0.85

Tested by

no test coverage detected