MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / tryStat

Function tryStat

src/skills/installer.ts:124–132  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

122 // candidate path) isn't masked behind a generic "couldn't find SKILL.md".
123 let lastStatErr: any;
124 const tryStat = async (p: string): Promise<boolean> => {
125 try {
126 await fs.stat(p);
127 return true;
128 } catch (e: any) {
129 if (e?.code !== 'ENOENT') lastStatErr = e;
130 return false;
131 }
132 };
133
134 // Direct hit: src/SKILL.md
135 if (await tryStat(path.join(src, 'SKILL.md'))) return src;

Callers 1

findSkillRootFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected