MCPcopy Create free account
hub / github.com/codesandbox/excalidraw-firebase / createReadStream

Method createReadStream

.pnp.cjs:7033–7043  ·  view source on GitHub ↗
(p, opts)

Source from the content-addressed store, hash-verified

7031 return mountFs.closeSync(realFd);
7032 }
7033 createReadStream(p, opts) {
7034 if (p === null)
7035 return this.baseFs.createReadStream(p, opts);
7036 return this.makeCallSync(p, () => {
7037 return this.baseFs.createReadStream(p, opts);
7038 }, (mountFs, { archivePath, subPath }) => {
7039 const stream = mountFs.createReadStream(subPath, opts);
7040 stream.path = npath.fromPortablePath(this.pathUtils.join(archivePath, subPath));
7041 return stream;
7042 });
7043 }
7044 createWriteStream(p, opts) {
7045 if (p === null)
7046 return this.baseFs.createWriteStream(p, opts);

Callers

nothing calls this directly

Calls 2

makeCallSyncMethod · 0.95
createReadStreamMethod · 0.45

Tested by

no test coverage detected