目录
目录README.md

Piz

The simplest unzipper just works.

import Piz
...
// create an unzipper with file URL or data
if let piz = Piz(fileURL: url) { // or let piz = Piz(data: data)
  // get all file names, including paths if available
  let files = piz.files

  // check if a file be available
  let isFileExisting = piz.contains(file: "path/to/file.ext")

  // get data from a file
  let data = piz.data(forFile: "path/to/file.ext")

  // or if you like subscription
  let data = piz["path/to/file.ext"]
}

Install

Swift package only, add this repo URL to your Package.swift.

About Me

  • Twitter: @_cxa
  • Apps available on the App Store: http://lazyapps.com
  • PayPal: xianan.chen+paypal 📧 gmail.com, buy me a cup of coffee if you find it’s useful for you

Credits

License

MIT

关于
514.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

©Copyright 2023 CCF 开源发展委员会
Powered by Trustie& IntelliDE 京ICP备13000930号