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

Method chownSync

lib/internal/vfs/providers/memory.js:923–928  ·  view source on GitHub ↗
(path, uid, gid)

Source from the content-addressed store, hash-verified

921 }
922
923 chownSync(path, uid, gid) {
924 const entry = this.#getEntry(path, 'chown', true);
925 if (uid >= 0) entry.uid = uid;
926 if (gid >= 0) entry.gid = gid;
927 entry.ctime = DateNow();
928 }
929
930 utimesSync(path, atime, mtime) {
931 const entry = this.#getEntry(path, 'utime', true);

Callers

nothing calls this directly

Calls 1

#getEntryMethod · 0.95

Tested by

no test coverage detected