MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / appendAsync

Function appendAsync

source code/utils/debug.ts:142–153  ·  view source on GitHub ↗
(
  needMkdir: boolean,
  dir: string,
  path: string,
  content: string,
)

Source from the content-addressed store, hash-verified

140// Module-level so .bind captures only its explicit args, not the
141// writeFn closure's parent scope (Jarred, #22257).
142async function appendAsync(
143 needMkdir: boolean,
144 dir: string,
145 path: string,
146 content: string,
147): Promise<void> {
148 if (needMkdir) {
149 await mkdir(dir, { recursive: true }).catch(() => {})
150 }
151 await appendFile(path, content)
152 void updateLatestDebugLogSymlink()
153}
154
155function noop(): void {}
156

Callers

nothing calls this directly

Calls 1

mkdirFunction · 0.85

Tested by

no test coverage detected