Skip to content

William-Weng/WWSimpleZipDirectoryReader

Repository files navigation

WWSimpleZipDirectoryReader

Swift-5.7 iOS-15.0 TAG Swift Package Manager-SUCCESS LICENSE

WWSimpleZipDirectoryReader

dependencies: [
    .package(url: "https://github.com/William-Weng/WWSimpleZipDirectoryReader.git", .upToNextMajor(from: "1.0.0"))
]

可用函式 (Function)

函式 功能
array(fileURL:) 以名稱排序顯示
dictionay(fileURL:) 以字典方式顯示

Example

import UIKit
import WWSimpleZipDirectoryReader

final class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        let zipFileURL = Bundle.main.url(forResource: "Test", withExtension: "zip")!
        let array = try! WWSimpleZipDirectoryReader.shared.array(fileUrl: zipFileURL).get()
        array.forEach { print($0) }
    }
}

About

Simply read the directory names of files within a zip archive.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages