adamhathcock / sharpcompress

SharpCompress is a fully managed C# library to deal with many compression types and formats.
MIT License
2.28k stars 480 forks source link

Added support for 7zip SFX archives #860

Closed lostmsu closed 3 months ago

lostmsu commented 3 months ago

Scans for magic header when ReaderOptions.LookForHeader is set

adamhathcock commented 3 months ago

run dotnet csharpier . after refreshing the tools to get the formatting please

not sure I grasp why AutoArchiveFactory is needed but looks good to me if tests pass

lostmsu commented 3 months ago

AutoArchiveFactory allows to unify tests with or without IArchiveFactory provided (e.g. if none - auto is used). I assume it could be useful in other scenarios too.