MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / resolvePathFromAppRoot

Function resolvePathFromAppRoot

lib/utils.ts:531–533  ·  view source on GitHub ↗
(...args: string[])

Source from the content-addressed store, hash-verified

529export const APP_ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
530
531export function resolvePathFromAppRoot(...args: string[]) {
532 return path.resolve(APP_ROOT, ...args);
533}
534
535export async function fileExists(filename: string): Promise<boolean> {
536 try {

Callers 9

loadFromFileMethod · 0.85
constructorMethod · 0.85
constructorMethod · 0.85
constructorMethod · 0.85
constructorMethod · 0.85
constructorMethod · 0.85
constructorMethod · 0.85
constructorMethod · 0.85
constructorMethod · 0.85

Calls 1

resolveMethod · 0.80

Tested by

no test coverage detected