zipFile.delete(name)


  • name <string>
  • 返回:<Promise> 如果存在名为 name 的条目并被移除,则返回 true,否则返回 false。

重写中央目录而不写入任何新内容——归档不会增长。如果 ZipFile 没有用 { writable: true } 打开,会抛出 ERR_ZIP_NOT_WRITABLE。

🌐 Rewrites the central directory without writing any new content - the archive does not grow. Throws ERR_ZIP_NOT_WRITABLE if the ZipFile was not opened with { writable: true }.