MCPcopy Create free account
hub / github.com/code-pushup/cli / exists

Function exists

packages/utils/src/lib/wizard/virtual-fs.unit.test.ts:37–39  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

35 written.set(toUnixPath(path), content);
36 },
37 async exists(path: string) {
38 return store.has(toUnixPath(path));
39 },
40 async mkdir(path: string): Promise<undefined> {
41 dirs.add(toUnixPath(path));
42 },

Callers

nothing calls this directly

Calls 1

toUnixPathFunction · 0.85

Tested by

no test coverage detected