MCPcopy
hub / github.com/nextlevelbuilder/ui-ux-pro-max-skill / exists

Function exists

cli/scripts/sync-assets.mjs:42–49  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

40const toLF = (text) => text.replace(/\r\n/g, '\n');
41
42async function exists(path) {
43 try {
44 await access(path);
45 return true;
46 } catch {
47 return false;
48 }
49}
50
51function assertInsideRepo(path) {
52 const resolvedPath = resolve(path);

Callers 2

checkAssetsFunction · 0.70
syncAssetsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected