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

Function runSync

benchmark/fs/bench-filehandle-pipetosync.js:94–98  ·  view source on GitHub ↗
(srcFh, dstFh, upper, compressFactory, pipeToSync)

Source from the content-addressed store, hash-verified

92}
93
94function runSync(srcFh, dstFh, upper, compressFactory, pipeToSync) {
95 const w = dstFh.writer();
96 pipeToSync(srcFh.pullSync(upper, compressFactory()), w);
97 return w.endSync();
98}
99
100function cleanup() {
101 try { unlinkSync(srcFile); } catch { /* Ignore */ }

Callers 1

mainFunction · 0.85

Calls 3

pipeToSyncFunction · 0.85
writerMethod · 0.80
endSyncMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…