zipFile.addEntrySync(entry)


  • entry ZipEntry
  • 返回:ZipEntry entry.

zipFile.addEntry() 的同步版本。entry 不能是一个待处理的流式条目(使用 zlib.ZipEntry.createStream() 创建的那种)——没有同步的方法来清空它的异步源。

🌐 The synchronous version of zipFile.addEntry(). entry must not be a pending streaming entry (one created with zlib.ZipEntry.createStream()) - there is no synchronous way to drain its asynchronous source.