icsharpcode/SharpZipLib

ZipFile.Create(archivePath) creates 0 bytes archive.

Open

#395 创建于 2019年11月14日

在 GitHub 查看
 (2 评论) (2 反应) (0 负责人)C# (964 fork)batch import
enhancementhelp wantedzip

仓库指标

Star
 (3,502 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Steps to reproduce

  1. Use ZipFile.Create(archivePath) to create an archive.
  2. Close created ZipFile without adding anything to it.

Expected behavior

Created archive have non-zero size (should have "End of central directory record" and be at least 22 bytes according to specification)

Actual behavior

Archive size is 0 bytes, attempt to open it with new ZipFile(archivePath) leads to ZipException "Cannot find central directory"

Version of SharpZipLib

1.1.0 also tried 1.2.0

Obtained from (only keep the relevant lines)

  • Package installed using NuGet

贡献者指南