libtar 1.2.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package libtar --version 1.2.1
NuGet\Install-Package libtar -Version 1.2.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="libtar" Version="1.2.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="libtar" Version="1.2.1" />
<PackageReference Include="libtar" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add libtar --version 1.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: libtar, 1.2.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=libtar&version=1.2.1
#tool nuget:?package=libtar&version=1.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
LibTar
libtar is a lightweight C# library for extracting TAR archives. It provides a simple API to extract all files from TAR archives.
API
Tar.ExtractAll(Stream src, string outputDirectory, bool overrideIfExisting);
Tar.Archive(string inputDirectory, Stream dest); // Create Tar Archive.
Demo
using CN.Lalaki.Archive;
using System.IO;
using System;
// ...sample code
using (var tar = File.Create("path\\of\\output.example.tar")){ // create tar archive.
Tar.Archive("D:\\temp", tar);
}
using (var tar = File.OpenRead("path\\of\\example.tar")) // tar file extract.
{
Tar.ExtractAll(tar, "path\\of\\outputDir\\", true);
}
using (var targz = File.OpenRead("path\\of\\example.tar.gz")) // tar.gz file extract
{
Tar.ExtractAll(targz, "path\\of\\outputDir\\", true);
}
using (var targz = new GzipStream(..., CompressionMode.Decompress)) // tar.gz stream extract
{
Tar.ExtractAll(targz, "path\\of\\outputDir\\", true);
}
License
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.6.2
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
v1.2.1 libtar - release.