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

Function lutimes

lib/internal/fs/promises.js:1988–2005  ·  view source on GitHub ↗
(path, atime, mtime)

Source from the content-addressed store, hash-verified

1986}
1987
1988async function lutimes(path, atime, mtime) {
1989 const h = vfsState.handlers;
1990 if (h !== null) {
1991 const promise = h.lutimes(path, atime, mtime);
1992 if (promise !== undefined) { await promise; return; }
1993 }
1994
1995 return await PromisePrototypeThen(
1996 binding.lutimes(
1997 getValidatedPath(path),
1998 toUnixTimestamp(atime),
1999 toUnixTimestamp(mtime),
2000 kUsePromises,
2001 ),
2002 undefined,
2003 handleErrorFromBinding,
2004 );
2005}
2006
2007async function realpath(path, options) {
2008 const h = vfsState.handlers;

Callers

nothing calls this directly

Calls 2

toUnixTimestampFunction · 0.85
lutimesMethod · 0.80

Tested by

no test coverage detected