MCPcopy Create free account
hub / github.com/coder/mux / isAbsolutePathAny

Function isAbsolutePathAny

src/node/services/tools/skillFileUtils.ts:22–28  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

20}
21
22export function isAbsolutePathAny(filePath: string): boolean {
23 if (filePath.startsWith("/") || filePath.startsWith("\\")) {
24 return true;
25 }
26
27 return /^[A-Za-z]:[\\/]/.test(filePath);
28}
29
30function resolveSkillFilePath(
31 skillDir: string,

Callers 3

resolveSkillFilePathFunction · 0.70

Calls 1

testMethod · 0.80

Tested by

no test coverage detected