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

Method chmodSync

lib/internal/vfs/providers/memory.js:916–921  ·  view source on GitHub ↗
(path, mode)

Source from the content-addressed store, hash-verified

914 // === METADATA OPERATIONS ===
915
916 chmodSync(path, mode) {
917 const entry = this.#getEntry(path, 'chmod', true);
918 // Preserve file type bits, update permission bits
919 entry.mode = (entry.mode & ~0o7777) | (mode & 0o7777);
920 entry.ctime = DateNow();
921 }
922
923 chownSync(path, uid, gid) {
924 const entry = this.#getEntry(path, 'chown', true);

Callers

nothing calls this directly

Calls 1

#getEntryMethod · 0.95

Tested by

no test coverage detected