MCPcopy Index your code
hub / github.com/Waishnav/devspace / fileExists

Function fileExists

src/apply-patch.ts:286–293  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

284}
285
286async function fileExists(path: string): Promise<boolean> {
287 try {
288 await access(path, constants.F_OK);
289 return true;
290 } catch {
291 return false;
292 }
293}
294
295export async function replaceFile(
296 temporary: string,

Callers 3

readRequiredTextFileFunction · 0.85
readOptionalTextFileFunction · 0.85
writeTextFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected