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

Function writeText

tools/scripts/sync-algomooc-index.js:196–200  ·  view source on GitHub ↗
(file, content)

Source from the content-addressed store, hash-verified

194}
195
196function writeText(file, content) {
197 const target = path.join(ROOT, file);
198 fs.mkdirSync(path.dirname(target), { recursive: true });
199 if (readText(file) !== content) fs.writeFileSync(target, content);
200}
201
202function sameItem(a, b) {
203 return JSON.stringify(a) === JSON.stringify(b);

Callers 2

appendSyncLogFunction · 0.85

Calls 1

readTextFunction · 0.85

Tested by

no test coverage detected