A tiny Swift library to extract 7zip archive using LZMA SDK v22.01.
import SevenZip
let archive: Archive = try Archive(fileURL: url)
let entry: Entry = archive.entries.first!
let path: String = entry.path
let size : UInt64 = entry.uncompressedSize
let data = try archive.extract(entry: entry)
Add https://github.com/mtgto/SevenZip.swift
to your Package.swift.
Swift parts of this software is released under the MIT License, see LICENSE.txt.
LZMA SDK is placed in the public domain. See https://www.7-zip.org/sdk.html .
link |
Stars: 1 |
Last commit: 1 week ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics