Skip to content

Creating a tar archive (not tar.gz) #674

Answered by piksel
AdisonCavani asked this question in Q&A
Discussion options

You must be logged in to vote

You just replace the gzip stream with the file stream in the examples:

    Stream outStream = File.Create("output.tar.gz");
    Stream gzoStream = new GZipOutputStream(outStream);
    TarArchive tarArchive = TarArchive.CreateOutputTarArchive(gzoStream);

=>

    Stream outStream = File.Create("output.tar");
    TarArchive tarArchive = TarArchive.CreateOutputTarArchive(outStream);

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AdisonCavani
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #673 on October 09, 2021 21:32.