Idea: Consolidated archive detection and info
What also might be useful is a utility to detect whether a particular archive can quickly extract a full directory/file listing without decompressing the entire archive. For example, the zip format. That way I could have two code paths, one which uses IArchive and provides nice progress feedback, and one which uses IReader and only shows a spinner (since IReader's IProgress feedback is only per-entry extraction progress and not overall archive extraction progress).
There should be some kind of ArchiveInformation record that is returned by using the Is* methods. This way capabilities can be assessed before full extraction
3 条评论