Tar

A simple implementation of Tar written in Swift

Tar

Carthage compatible

A simple implementation of Tar written in Swift.

Tar exposes the following headers

public static func untar(path: String, toPath: String, using: NSData.Algorithm? = nil)
public static func untar(data: NSData, toPath: String, using: NSData.Algorithm? = nil)
public static func tar(path: String, toPath: String, using: NSData.Algorithm? = nil)
public static func tar(path: String, using: NSData.Algorithm? = nil) -> NSData

NSData.Algorithm is an enum that represents the 4 different types of compression offered by Apple’s Compression library

public enum Algorithm {
  case LZ4
  case LZFSE
  case LZMA
  case ZLIB
}

Installation

Tar is Carthage compatible. To install add the following to your Cartfile.

github "pruthvikar/Tar" 

For additional info on Carthage installation please visit https://github.com/Carthage/Carthage.

License

Tar is available under the GNU General Public License. See the LICENSE file for more info.

Inspired by daltoniam/tarkit

Related Repositories

EQGRP_Lost_in_Translation

EQGRP_Lost_in_Translation

Decrypted content of odd.tar.xz.gpg, swift.tar.xz.gpg and windows.tar.xz.gpg ...

SharpZipLib

SharpZipLib

#ziplib is a Zip, GZip, Tar and BZip2 library written entirely in C# for the .NET platform. ...

archiver

archiver

Easily create and extract .zip, .rar (extract-only), .tar, .tar.gz, and .tar.bz2 files with Go ...

Zippy

Zippy

PHP zip/tar/bz2 archives (de)compression library with commandline or extensions ...

tar-fs

tar-fs

fs bindings for tar-stream ...