MCPcopy
hub / github.com/shelljs/shelljs / resetUtimes

Function resetUtimes

test/touch.js:21–26  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

19
20// Helper functions
21function resetUtimes(f) {
22 const d = new Date();
23 d.setYear(2000);
24 fs.utimesSync(f, d, d);
25 return common.statFollowLinks(f);
26}
27
28function tmpFile(t, noCreate) {
29 const str = crypto.randomBytes(Math.ceil(10 / 2)).toString('hex');

Callers 1

touch.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…