mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-07-09 02:26:47 +00:00
Changed File.OpenWrite to File.Create to ensure files are truncated when extracting over existing files. File.OpenWrite does not truncate, leaving old data at the end if the new file is shorter. Added test Zip_Deflate_ArchiveExtractToDirectory_Overwrite to verify the fix. Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com>