MCPcopy Create free account
hub / github.com/cloudflare/computer / utimens

Function utimens

packages/computerd/src/fuse/driver.ts:879–889  ·  view source on GitHub ↗
(path, atime, mtime, cb)

Source from the content-addressed store, hash-verified

877 },
878
879 utimens(path, atime, mtime, cb) {
880 if (!vfs.existsSync(toVfs(path))) {
881 cb(ERRNO.ENOENT);
882 return;
883 }
884 // Note: with libfuse2/fuse-native, touch -a / touch -m alone do not
885 // reach this op — the kernel/libfuse short-circuits when only one of
886 // atime/mtime is provided (UTIME_OMIT). touch with both set works.
887 updateMeta(path, { atime: new Date(atime), mtime: new Date(mtime) });
888 cb(0);
889 },
890 readlink(path, cb) {
891 try {
892 cb(0, vfs.readlinkSync(toVfs(path)));

Callers

nothing calls this directly

Calls 3

toVfsFunction · 0.85
updateMetaFunction · 0.85
existsSyncMethod · 0.80

Tested by

no test coverage detected