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

Function callback

test/parallel/test-fs-link.js:14–18  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

12fs.writeFileSync(srcPath, 'hello world');
13
14function callback(err) {
15 assert.ifError(err);
16 const dstContent = fs.readFileSync(dstPath, 'utf8');
17 assert.strictEqual(dstContent, 'hello world');
18}
19
20fs.link(srcPath, dstPath, common.mustCall(callback));
21

Callers 15

writeFunction · 0.70
runAbFunction · 0.70
asynctestFunction · 0.70
test_relative_input_cwdFunction · 0.70
test_deep_symlink_mixFunction · 0.70
testServerFunction · 0.70

Calls 1

readFileSyncMethod · 0.45

Tested by 1

testFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…