MCPcopy Create free account
hub / github.com/freeCodeCamp/freeCodeCamp / hasEnglishSource

Function hasEnglishSource

curriculum/src/get-challenges.ts:26–34  ·  view source on GitHub ↗
(
  basePath: string,
  translationPath: string
)

Source from the content-addressed store, hash-verified

24}
25
26export async function hasEnglishSource(
27 basePath: string,
28 translationPath: string
29) {
30 const englishRoot = resolve(__dirname, basePath, 'english');
31 return await access(join(englishRoot, translationPath), constants.F_OK)
32 .then(() => true)
33 .catch(() => false);
34}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected