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

Method writeFiles

test/parallel/test-fs-promises-watch-iterator.js:40–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38 }
39 }
40 async writeFiles() {
41 if (common.isMacOS) {
42 // Do the write with a delay to ensure that the OS is ready to notify us.
43 // See https://github.com/nodejs/node/issues/52601.
44 await setTimeout(common.platformTimeout(100));
45 }
46
47 for (const fileName of [...this.files]) {
48 await writeFile(this.filePath(fileName), Date.now() + fileName.repeat(1e4));
49 }
50 }
51}
52
53const kCases = [

Callers 1

runMethod · 0.95

Calls 4

filePathMethod · 0.95
nowMethod · 0.80
writeFileFunction · 0.70
setTimeoutFunction · 0.50

Tested by

no test coverage detected