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

Function changeFile

test/pummel/test-watch-file.js:49–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47watchFile();
48
49function changeFile() {
50 const fd = fs.openSync(f, 'w+');
51 fs.writeSync(fd, 'xyz\n');
52 fs.closeSync(fd);
53}
54
55changeFile();
56const interval = setInterval(changeFile, 1000);

Callers 1

test-watch-file.jsFile · 0.85

Calls 3

openSyncMethod · 0.45
writeSyncMethod · 0.45
closeSyncMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…