ZipError
public enum ZipError: Error
Error happened during processing ZIP archive (container). It may indicate that either the data is damaged or it might not be ZIP archive (container) at all.
notFoundCentralDirectoryEnd: end of Central Directoty record wasn’t found.wrongSignature: unsupported signature of one of ZIP container’s structures.wrongSize: incorrect compressed or uncompressed size of a ZIP container’s entry’s data.wrongVersion: unsupported number of version needed to extract ZIP container (unsupported features are required to open this file).multiVolumesNotSupported: unsupported feature: multi-volumed or spanned container.encryptionNotSupported: unsupported feature: encryption.patchingNotSupported: unsupported feature: patched data.compressionNotSupported: unsupported feature: specified compression method.wrongLocalHeader: local header of an entry wasn’t consistent with Central Directory record.wrongCRC32: computed checksum of entry’s data wasn’t the same as the one stored in container.
-
End of Central Directoty record was not found.
Declaration
Swift
case notFoundCentralDirectoryEnd
-
Wrong signature of one of ZIP container’s structures.
Declaration
Swift
case wrongSignature
-
Wrong either compressed or uncompressed size of a ZIP container’s entry.
Declaration
Swift
case wrongSize
-
Wrong number of version needed to extract ZIP container.
Declaration
Swift
case wrongVersion
-
Archive either spanned or consists of several volumes. This feature is not supported.
Declaration
Swift
case multiVolumesNotSupported
-
Entry or record is encrypted. This feature is not supported.
Declaration
Swift
case encryptionNotSupported
-
Entry contains patched data. This feature is not supported.
Declaration
Swift
case patchingNotSupported
-
Wrong compression method of an entry.
Declaration
Swift
case compressionNotSupported
-
Wrong local header of an entry.
Declaration
Swift
case wrongLocalHeader
-
Computed CRC32 of entry’s data didn’t match the value stored in the container. Associated value contains extracted data.
Declaration
Swift
case wrongCRC32(Data)
-
Undocumented
Declaration
Swift
public enum ZipError: Error
View on GitHub
ZipError Enum Reference