Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add .tar.7z support #756

Closed
wants to merge 3 commits into from
Closed

Add .tar.7z support #756

wants to merge 3 commits into from

Conversation

btomblinson
Copy link
Contributor

Candidate for #751

I used Ubuntu subsystem on Windows to create a .tar.7z file, and was able to open and read it via the test

@@ -105,7 +105,7 @@ public static SevenZipArchive Open(Stream stream, ReaderOptions readerOptions =
/// <param name="srcStream"></param>
/// <param name="options"></param>
internal SevenZipArchive(SourceStream srcStream)
: base(ArchiveType.SevenZip, srcStream) { }
: base(ArchiveType.Tar, srcStream) { }
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't right. We can't change archive types.

What do tars for gz and bz2 do?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The GZipArchive does the same thing, that was the only way that the test was able to succeed for both GZip and SevenZip

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

    /// <summary>
    /// Constructor with a SourceStream able to handle FileInfo and Streams.
    /// </summary>
    /// <param name="srcStream"></param>
    /// <param name="options"></param>
    internal GZipArchive(SourceStream srcStream)
        : base(ArchiveType.Tar, srcStream) { }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants