Entry

public struct Entry : Equatable

A value that represents a file, a directory or a symbolic link within a ZIP Archive.

You can retrieve instances of Entry from an Archive via subscripting or iteration. Entries are identified by their path.

  • The type of an Entry in a ZIP Archive.

    See more

    Declaration

    Swift

    public enum EntryType : Int
  • Returns the path of the receiver within a ZIP Archive using a given encoding.

    Declaration

    Swift

    public func path(using encoding: String.Encoding) -> String

    Parameters

    encoding

    String.Encoding

  • The path of the receiver within a ZIP Archive.

    Declaration

    Swift

    public var path: String { get }
  • The file attributes of the receiver as key/value pairs.

    Contains the modification date and file permissions.

    Declaration

    Swift

    public var fileAttributes: [FileAttributeKey : Any] { get }
  • The CRC32 checksum of the receiver.

    Note

    Always returns 0 for entries of type EntryType.directory.

    Declaration

    Swift

    public var checksum: CRC32 { get }
  • The EntryType of the receiver.

    Declaration

    Swift

    public var type: EntryType { get }
  • Indicates whether or not the receiver is compressed.

    Declaration

    Swift

    public var isCompressed: Bool { get }
  • The size of the receiver’s compressed data.

    Declaration

    Swift

    public var compressedSize: UInt64 { get }
  • The size of the receiver’s uncompressed data.

    Declaration

    Swift

    public var uncompressedSize: UInt64 { get }
  • Declaration

    Swift

    public static func == (lhs: Entry, rhs: Entry) -> Bool