MCPcopy Create free account
hub / github.com/nodejs/node / utime

Function utime

test/parallel/test-trace-events-fs-async.js:235–241  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

233}
234
235function utime() {
236 const fs = require('fs');
237 fs.writeFileSync('fs25.txt', '123', 'utf8');
238 fs.utimes('fs25.txt', 1, 1, () => {
239 fs.unlinkSync('fs25.txt');
240 });
241}
242
243function write() {
244 const fs = require('fs');

Callers

nothing calls this directly

Calls 4

requireFunction · 0.50
writeFileSyncMethod · 0.45
utimesMethod · 0.45
unlinkSyncMethod · 0.45

Tested by

no test coverage detected