mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-06 21:26:07 +00:00
TryOpen API #340
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 @AlexeiScherbakov on GitHub (Jan 2, 2019).
API tries open Archive, and return IArchive + true,when file is archive, false when file is not archive.
Exceptions are not thrown. Via ArchiveTypeMask user can set needed archive types (for example exclude Tar if it is not needed).
Add TryOpen to ArchiveFactory
Add TryOpen to ReaderFactory
static bool ReaderFactory.TryOpen(Stream stream, ReaderOptions options,ArchiveTypeMask archiveTypes, out IReader reader)Add ArchiveTypeMask