MCPcopy
hub / github.com/Fission-AI/OpenSpec / fileExists

Function fileExists

test/core/init.test.ts:770–777  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

768});
769
770async function fileExists(filePath: string): Promise<boolean> {
771 try {
772 await fs.access(filePath);
773 return true;
774 } catch {
775 return false;
776 }
777}
778
779async function directoryExists(dirPath: string): Promise<boolean> {
780 try {

Callers 1

init.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected