Overview
SwiftZip is a Swift wrapper for libzip providing an API to read, create and modify zip archives. Files can be added from data buffers, files, or compressed data copied directly from other zip archives. Changes made without closing the archive can be reverted.
Visit SwiftZip project at GitHub: https://github.com/SwiftZip/SwiftZip.
Note: SwiftZip is currently under development and API may change slightly as the project evolves.
Classes
- ZipArchive
-
An read-only archive.
- ZipArchive.EntryCollection
-
A collection of read-only entries in the archive.
- ZipEntry
-
A read-only accessor for an entry in the archive.
- ZipEntryReader
-
A reader for the archive entry data stream.
- ZipMutableArchive
-
An mutable archive.
- ZipMutableArchive.MutableEntryCollection
-
A collection of mutable entries in the archive.
- ZipMutableEntry
-
A read-write accessor for an entry in the archive.
- ZipSource
-
A data source.
Structures
- ZipArchive.AddFileFlags
-
A set of flags to be used with
ZipArchive.addFile
. - ZipArchive.FDOpenFlags
-
A set of flags to be used with
ZipArchive.init(fd:flags:)
. - ZipArchive.LocateFlags
-
A set of flags to be used with
ZipArchive
name-based APIs:locate
,stat
andopen
. - ZipArchive.OpenFlags
-
A set of flags to be used with
ZipArchive.init
. - ZipArchive.Version
-
A version of the archive.
- ZipEntry.ExternalAttributes
-
A platform-specific external attributes of the archive entry.
- ZipEntry.ExternalAttributes.OperatingSystem
-
An operating system used to create the archive entry.
- ZipEntry.ExtraFieldFlags
-
A lookup flag for extra fields of the archive entry.
- ZipEntry.OpenFlags
-
A set of flags to be used with
ZipEntry.open
. - ZipMutableArchive.MutableOpenFlags
-
A set of flags to be used with
ZipMutableArchive.init
. - ZipStat
-
Properties of the archive etry.
- ZipStat.CompressionFlags
-
A compression preference for deflate.
- ZipStat.CompressionMethod
-
A compression algorithm.
- ZipStat.EncryptionMethod
-
An encryption method.
- ZipStat.ValidFields
-
A set of valid property values in the
ZipEntry.Stat
struct. - ZipStringDecodingStrategy
-
A strategy used to parse string values in the archive
- ZipWhence
-
A reference point specifier for stream
seek
methods.
Enumerations
- ZipError
-
An error originating from SwiftZip or libzip.
Protocols
- ZipSourceAdapter
-
A base protocol for all custom sources.
- ZipSourceReadable
-
A protocol for custom readable sources.
- ZipSourceSeekable
-
A protocol for custom readable and seekable sources.
- ZipSourceWritable
-
A protocol for custom writable sources.