MCPcopy Index your code
hub / github.com/MisterBooo/LeetCodeAnimation / findRepoPath

Function findRepoPath

tools/scripts/sync-algomooc-index.js:82–88  ·  view source on GitHub ↗
(leetcodeId, dirs)

Source from the content-addressed store, hash-verified

80}
81
82function findRepoPath(leetcodeId, dirs) {
83 const prefix = String(leetcodeId).padStart(4, "0");
84 return dirs.find((dir) => {
85 const name = path.basename(dir);
86 return name.startsWith(`${prefix}-`) || name.startsWith(`${prefix}_`);
87 }) || null;
88}
89
90function findFirstGif(dir) {
91 if (!dir) return null;

Callers 1

buildManifestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected