zipFile.close()


关闭底层的文件句柄。

🌐 Closes the underlying file handle.

关闭不会使未完成的对象失效:之前由 zipFile.get() 返回的 ZipEntry 对象以及 ZipFile 自身的方法返回的对象,如果在关闭后使用,将会出现系统级错误(例如 EBADF),而不是专门的 Node.js 错误代码。zipFile.closeSync() 也同样适用。

🌐 Closing does not invalidate outstanding objects: ZipEntry objects previously returned by zipFile.get() and the ZipFile's own methods will fail with system-level errors (for example EBADF) if used after close, rather than a dedicated Node.js error code. The same applies to zipFile.closeSync().