MCPcopy Index your code
hub / github.com/react/react / exists

Function exists

compiler/packages/snap/src/fixture-utils.ts:29–36  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

27};
28
29async function exists(file: string): Promise<boolean> {
30 try {
31 await fs.access(file);
32 return true;
33 } catch {
34 return false;
35 }
36}
37
38function stripExtension(filename: string, extensions: Array<string>): string {
39 for (const ext of extensions) {

Callers 1

readTestFilterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected