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

Function createFile

test/parallel/test-fs-promises-file-handle-op-errors.js:24–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22
23let count = 0;
24async function createFile() {
25 const filePath = tmpdir.resolve(`op_errors_${++count}.txt`);
26 await writeFile(filePath, 'content');
27 return filePath;
28}
29
30async function checkOperationError(op) {
31 try {

Callers 1

checkOperationErrorFunction · 0.70

Calls 2

writeFileFunction · 0.70
resolveMethod · 0.45

Tested by

no test coverage detected