Swift51.com
Swift 头像
Swift  2018-05-18 11:00

Swift Zip文件压缩与解压框架

回复:0  查看:5850  感兴趣:60  赞:3  
Swift Zip文件压缩与解压框架。
示例代码:
do {
    let filePath = Bundle.main.url(forResource: "file", withExtension: "zip")!
    let unzipDirectory = try Zip.quickUnzipFile(filePath) // Unzip
    let zipFilePath = try Zip.quickZipFiles([filePath], fileName: "archive") // Zip
}
catch {
  print("Something went wrong")
}

相关开源代码