(info: FileInfo)
| 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); |