adamhathcock / sharpcompress

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

Sample to create a .tar.gz file from source directory #11

Closed jsinh closed 10 years ago

jsinh commented 10 years ago

Hello, I am really in need to find a library which can take of my .tar.gz compression needs. This library seems promising to me, but somehow I am not able to get around the code to create a sample for .tar.gz file creation from source directory (source directory will contain more sub folder and files).

I would be thankful if the team can add a sample snippet for the same in your documentation or wiki page for reference or in reply to this issue.

-Jsinh

adamhathcock commented 10 years ago

The unit tests are a good starting point: https://github.com/adamhathcock/sharpcompress/blob/master/SharpCompress.Test/GZip/GZipWriterTests.cs