MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / open

Method open

packages/filesystem/zip/zip.ts:21–28  ·  view source on GitHub ↗
(info: FileInfo)

Source from the content-addressed store, hash-verified

19 }
20
21 async open(info: FileInfo): Promise<FileReader> {
22 const path = info.name;
23 const file = this.zip.file(path);
24 if (file) {
25 return new ZipFileReader(file);
26 }
27 throw new Error("File not found");
28 }
29
30 async openDir(path: string): Promise<FileSystem> {
31 return new ZipFileSystem(this.zip, path);

Callers

nothing calls this directly

Calls 1

fileMethod · 0.80

Tested by

no test coverage detected