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

Function futimes

lib/internal/fs/promises.js:1975–1986  ·  view source on GitHub ↗
(handle, atime, mtime)

Source from the content-addressed store, hash-verified

1973}
1974
1975async function futimes(handle, atime, mtime) {
1976 if (permission.isEnabled()) {
1977 throw new ERR_ACCESS_DENIED('futimes API is disabled when Permission Model is enabled.');
1978 }
1979 atime = toUnixTimestamp(atime, 'atime');
1980 mtime = toUnixTimestamp(mtime, 'mtime');
1981 return await PromisePrototypeThen(
1982 binding.futimes(handle.fd, atime, mtime, kUsePromises),
1983 undefined,
1984 handleErrorFromBinding,
1985 );
1986}
1987
1988async function lutimes(path, atime, mtime) {
1989 const h = vfsState.handlers;

Callers

nothing calls this directly

Calls 2

toUnixTimestampFunction · 0.85
isEnabledMethod · 0.80

Tested by

no test coverage detected