MCPcopy Create free account
hub / github.com/AnkRoot/Augment-BYOK / assertFileExists

Function assertFileExists

tools/patch/patch-target.js:8–11  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

6const { ensureMarker } = require("../lib/patch");
7
8function assertFileExists(filePath) {
9 if (!fs.existsSync(filePath)) throw new Error(`missing file: ${filePath}`);
10 return filePath;
11}
12
13function loadPatchText(filePath, { marker } = {}) {
14 const target = assertFileExists(filePath);

Callers 2

loadPatchTextFunction · 0.70
loadPatchJsonFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected