Swiftpack.co -  Light-Untar/Light-Swift-Untar as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Light-Untar/Light-Swift-Untar
Tar file extract utility written in Swift
.package(url: "https://github.com/Light-Untar/Light-Swift-Untar.git", from: "v1.0.1")

Light Untar

Functionality

This is a utility written in only 149 lines of Swift to extract tar files with the standard 512-block size, or a multiple thereof, created with the GNU tar command: tar -cf.

Warning: This code does not support GNU ZIP (gzip) compression, such as tar -czf, or non-standard block sizes.

Example

FileManager.default.createFilesAndDirectories(path: "file/path/extracted", tarPath: "file/path/42.tar")

Objective-C

This code is a Swift port of NSFileManager+Tar.m from Octo's Light Untar for iOS written in Objective-C.

Since this code is NOT visible to Objective-C, if you are looking for an Objective-C version, check it out!

GitHub

link
Stars: 2
Last commit: 3 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

Release Notes

1 year ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics