MCPcopy
hub / github.com/MisterBooo/LeetCodeAnimation / problemDirs

Function problemDirs

tools/scripts/sync-algomooc-index.js:73–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71}
72
73function problemDirs() {
74 const base = path.join(ROOT, PROBLEMS_DIR);
75 if (!fs.existsSync(base)) return [];
76 return fs
77 .readdirSync(base, { withFileTypes: true })
78 .filter((entry) => entry.isDirectory())
79 .map((entry) => `${PROBLEMS_DIR}/${entry.name}`);
80}
81
82function findRepoPath(leetcodeId, dirs) {
83 const prefix = String(leetcodeId).padStart(4, "0");

Callers 1

buildManifestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected