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
-
Wrong computed CRC32 of an entry.
Declaration
Swift
case WrongCRC32
View on GitHub
ZipError Enum Reference