(writer, options)
| 6424 | } |
| 6425 | |
| 6426 | async exportZip(writer, options) { |
| 6427 | const zipEntry = this; |
| 6428 | if (options.bufferedWrite === UNDEFINED_VALUE) { |
| 6429 | options.bufferedWrite = true; |
| 6430 | } |
| 6431 | await Promise.all([initReaders(zipEntry, options.readerOptions), initStream(writer)]); |
| 6432 | const zipWriter = new ZipWriter(writer, options); |
| 6433 | await exportZip(zipWriter, zipEntry, getTotalSize([zipEntry], "uncompressedSize"), options); |
| 6434 | await zipWriter.close(); |
| 6435 | return writer.getData ? writer.getData() : writer.writable; |
| 6436 | } |
| 6437 | |
| 6438 | getChildByName(name) { |
| 6439 | const children = this.children; |
no test coverage detected