MCPcopy Index your code
hub / github.com/nodejs/node / doAppend

Function doAppend

test/parallel/test-fs-promises-writefile.js:144–149  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

142}
143
144async function doAppend() {
145 await fsPromises.appendFile(dest, buffer2, { flag: null });
146 const data = fs.readFileSync(dest);
147 const buf = Buffer.concat([buffer, buffer2]);
148 assert.deepStrictEqual(buf, data);
149}
150
151async function doRead() {
152 const data = await fsPromises.readFile(dest);

Callers 1

Calls 3

concatMethod · 0.80
appendFileMethod · 0.45
readFileSyncMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…