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

Method setReadOnly

lib/internal/vfs/providers/memory.js:212–214  ·  view source on GitHub ↗

* Sets the provider to read-only mode. * Once set to read-only, the provider cannot be changed back to writable. * This is useful for finalizing a VFS after initial population.

()

Source from the content-addressed store, hash-verified

210 * This is useful for finalizing a VFS after initial population.
211 */
212 setReadOnly() {
213 this[kReadonly] = true;
214 }
215
216 get supportsSymlinks() {
217 return true;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected