SwiftZip Documentation Beta

Structure Zip​Stat

public struct ZipStat

Properties of the archive etry.

Nested Types

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.

Initializers

init(size:​compressed​Size:​modification​Date:​crc32:​compression​Method:​encryption​Method:​flags:​)

public init(size: Int? = nil, compressedSize: Int? = nil, modificationDate: Date? = nil, crc32: UInt32? = nil, compressionMethod: CompressionMethod? = nil, encryptionMethod: EncryptionMethod? = nil, flags: UInt32? = nil)

Properties

valid​Fields

var validFields: ValidFields

Set of valid fields in a struct

raw​Name

var rawName: Data?

Name of the file

index

var index: UInt64?

Index within archive

size

var size: Int?

Size of file (uncompressed)

compressed​Size

var compressedSize: Int?

Size of file (compressed)

modification​Date

var modificationDate: Date?

Modification date and time

crc32

var crc32: UInt32?

CRC32 of file data

compression​Method

var compressionMethod: CompressionMethod?

Compression method used

encryption​Method

var encryptionMethod: EncryptionMethod?

Encryption method used

flags

var flags: UInt32?

Reserved for future use