Skip to content

1.2.0

Compare
Choose a tag to compare
@buh buh released this 03 Oct 21:06
· 22 commits to main since this release

ZIPFolder

An array of entries can be converted into a structured hierarchy:

let entries = try await URLSession(configuration: .ephemeral).zipEntries(from: url)
let rootFolder = entries.rootFolder()

ZIPFolder consists of:

  • name
  • entries: [ZIPEntry]
  • subfolders: [ZIPFolder]
  • size (including size of subfolders)
  • lastModificationDate

Demo

The demo has been updated to navigate through the file hierarchy: