MCPcopy
hub / github.com/AutoMaker-Org/automaker / appendFile

Function appendFile

libs/platform/src/secure-fs.ts:269–279  ·  view source on GitHub ↗
(
  filePath: string,
  data: string | Buffer,
  encoding?: BufferEncoding
)

Source from the content-addressed store, hash-verified

267 * Wrapper around fs.appendFile that validates path first
268 */
269export async function appendFile(
270 filePath: string,
271 data: string | Buffer,
272 encoding?: BufferEncoding
273): Promise<void> {
274 const validatedPath = validatePath(filePath);
275 return executeWithRetry(
276 () => fs.appendFile(validatedPath, data, encoding),
277 `appendFile(${filePath})`
278 );
279}
280
281/**
282 * Wrapper around fs.rename that validates both paths first

Callers

nothing calls this directly

Calls 2

validatePathFunction · 0.85
executeWithRetryFunction · 0.85

Tested by

no test coverage detected