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

Function overlaps

packages/arctic/src/util/filesystem.ts:5–9  ·  view source on GitHub ↗
(a: string, b: string)

Source from the content-addressed store, hash-verified

3
4export namespace Filesystem {
5 export function overlaps(a: string, b: string) {
6 const relA = relative(a, b)
7 const relB = relative(b, a)
8 return !relA || !relA.startsWith("..") || !relB || !relB.startsWith("..")
9 }
10
11 export function contains(parent: string, child: string) {
12 return !relative(parent, child).startsWith("..")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected