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

Function createBlockFolder

curriculum/src/file-handler.ts:180–188  ·  view source on GitHub ↗
(block: string)

Source from the content-addressed store, hash-verified

178}
179
180export async function createBlockFolder(block: string) {
181 const { blockContentDir } = getContentConfig('english') as {
182 blockContentDir: string;
183 };
184
185 const newBlockDir = resolve(blockContentDir, block);
186 await mkdir(newBlockDir, { recursive: true });
187 return newBlockDir + '/';
188}
189
190export function getBlockStructure(block: string) {
191 return JSON.parse(

Callers 4

createQuizChallengeFunction · 0.90
createFirstChallengeFunction · 0.90
createQuizChallengeFunction · 0.90
createQuizChallengeFunction · 0.90

Calls 1

getContentConfigFunction · 0.85

Tested by

no test coverage detected