mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-04 05:25:00 +00:00
The compression software reports an error when opening the zip file. #530
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 @suoyukii on GitHub (Aug 4, 2022).
Bandizip and Windows OS Explorer prompt an error after opening the zip file.
Code:
@adamhathcock commented on GitHub (Aug 4, 2022):
you're not calling dispose on anything
@suoyukii commented on GitHub (Aug 4, 2022):
I used this code to compress and package a directory with files, and then opened it with Bandizip and Explorer and reported an error.
I can send you the zip file with the problem for analysis, and you may understand.
@suoyukii commented on GitHub (Aug 4, 2022):
cat.zip
@adamhathcock commented on GitHub (Aug 4, 2022):
you need to dispose the writer and all your stream objects.
@suoyukii commented on GitHub (Aug 4, 2022):
@adamhathcock Thank you!