MCPcopy Create free account
hub / github.com/GrapesJS/cli / isPathExists

Function isPathExists

src/utils.ts:80–87  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

78};
79
80export const isPathExists = async (path: string) => {
81 try {
82 await fsp.access(path);
83 return true;
84 } catch {
85 return false;
86 }
87 };
88
89
90export const writeFile = async (filePath: string, data: string) => {

Callers 1

writeFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected