Skip to content

TarballKit is a swift framework for reading and writing tarballs in iOS apps.

License

Notifications You must be signed in to change notification settings

kolyvan/tarballkit

Repository files navigation

TarballKit Framework

TarballKit is a swift framework for reading and writing tarballs in iOS apps.

It is based on the libarchive library.

Installation and Setup

TarballKit supports Carthage.

Carthage

github "kolyvan/tarballkit"

Usage

Reader

let reader = TarballReader(filePath: "/path/to/archive.tar")
for entry in reader {
  doSomething(entry.content)
}

let data = try reader.read(path: "entry.txt")

Writer

let writer = try TarballWriter(filePath: "/path/to/archive.tar")
try writer.write(data: data, path: "entry.txt")

License

TarballKit is open source and covered by a standard 2-clause BSD license. See the LICENSE file for more info.

About

TarballKit is a swift framework for reading and writing tarballs in iOS apps.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published