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

Function contains

packages/arctic/src/util/filesystem.ts:11–13  ·  view source on GitHub ↗
(parent: string, child: string)

Source from the content-addressed store, hash-verified

9 }
10
11 export function contains(parent: string, child: string) {
12 return !relative(parent, child).startsWith("..")
13 }
14
15 export async function findUp(target: string, start: string, stop?: string) {
16 let current = start

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected