MCPcopy Create free account
hub / github.com/Sandpack/nodebox-runtime / fs

Method fs

packages/nodebox/src/Nodebox.ts:126–138  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

124 }
125
126 get fs(): FileSystemApi {
127 invariant(
128 this.isConnected,
129 'Failed to access the File System API: consumer is not connected. Did you forget to run "connect()"?'
130 );
131
132 if (this.fileSystemApi) {
133 return this.fileSystemApi;
134 }
135
136 this.fileSystemApi = new FileSystemApi(this.channel);
137 return this.fileSystemApi;
138 }
139
140 get shell(): ShellApi {
141 invariant(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected