icsharpcode/SharpZipLib

ZipFile.Create(archivePath) creates 0 bytes archive.

Open

#395 geöffnet am 14. Nov. 2019

Auf GitHub ansehen
 (2 Kommentare) (2 Reaktionen) (0 zugewiesene Personen)C# (964 Forks)batch import
enhancementhelp wantedzip

Repository-Metriken

Stars
 (3.502 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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

Contributor Guide