Unrar.swift
Unrar.swift copied to clipboard
Swift library wraps unrar C++ library provided by rarlib.
Unrar
Swift library wraps unrar C++ library provided by rarlib.
Feature
- [x] Supported
- [x] List entries of archive
- [x] Extract to memory
- [x] Extract encrypted archive by password
- [x] Get comment from the archive
- [x] Get comment from archive entries
- [x] SFX archive
- [ ] Unsupported
- [ ] Extract to file
- [ ] Extract from archive on the memory
- [ ] Multi-Volume
Usage
import Unrar
let archive = try Archive(filePath: "/path/to/archive.rar")
let comment = try archive.comment()
let entries = try archive.entries()
let extractedData = try archive.extract(entries[0])
Installation
Swift Package Manager (SPM)
Add https://github.com/mtgto/Unrar.swift to your Package.swift.
Related projects
License
Swift parts of this software is released under the MIT License, see LICENSE.txt.
C++ library has different license. See Sources/Cunrar/readme.txt.