MCPcopy Create free account
hub / github.com/msgbyte/tailchat / checkFileExists

Function checkFileExists

client/web/scripts/deno-static-entry.ts:23–34  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

21});
22
23async function checkFileExists(filePath: string): Promise<boolean> {
24 try {
25 await Deno.stat(filePath);
26 return true;
27 } catch (error) {
28 if (error instanceof Deno.errors.NotFound) {
29 return false;
30 } else {
31 throw error;
32 }
33 }
34}

Callers 1

Calls 1

statMethod · 0.80

Tested by

no test coverage detected