MCPcopy
hub / github.com/subquery/subql / fileExists

Function fileExists

packages/cli/src/controller/init-controller.test.ts:45–48  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

43}
44
45async function fileExists(file: string): Promise<boolean> {
46 await fs.promises.access(file, fs.constants.F_OK);
47 return true;
48}
49
50jest.setTimeout(30000);
51

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected