mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-04 05:25:00 +00:00
System.DivideByZeroException #349
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @antim0118 on GitHub (Mar 30, 2019).
i get System.DivideByZeroException when i try to compress empty txt file.
screenshot
ArchiveType = Zip
CompressType = BZip2
@antim0118 commented on GitHub (Mar 30, 2019):
File: SharpCompress\Compressors\BZip2\CBZip2OutputStream.cs
Error line: 1344
@adamhathcock commented on GitHub (Apr 1, 2019):
My first thought is "don't do that." but I guess zip allows for empty files?
You could just set to no compression on that entry.