/NTar

A single file C# file to untar file entries from a tar stream.

Primary LanguageC#BSD 2-Clause "Simplified" LicenseBSD-2-Clause

NTar

A single file C# file to untar file entries from a tar stream.

Usage

Gets all files entries from a tar stream:

foreach (var entryStream in stream.Untar())
{
    // stream.FileName, stream.LastModifiedTime, stream.Length
}

Untar the stream to a specified output directory:

stream.UntarTo(".");

Usage

Copy the TarHelper.cs file directly into your project

The code is compatible with .NET 4.x+ and .NETCore

Limitations

NTar does not provide currently creation of a tar archive.

License

This software is released under the BSD-Clause 2 license.

Author

Alexandre Mutel aka xoofx.