ZipEntryInfo

public struct ZipEntryInfo: ContainerEntryInfo

Provides access to information about an entry from the ZIP container.

  • Declaration

    Swift

    public let name: String
  • Declaration

    Swift

    public let size: Int?
  • Declaration

    Swift

    public let type: ContainerEntryType
  • Entry’s last access time (nil, if not available).

    Set from different sources in the following preference order:

    1. Extended timestamp extra field (most common on UNIX-like systems).
    2. NTFS extra field.

    Declaration

    Swift

    public let accessTime: Date?
  • Entry’s creation time (nil, if not available).

    Set from different sources in the following preference order:

    1. Extended timestamp extra field (most common on UNIX-like systems).
    2. NTFS extra field.

    Declaration

    Swift

    public let creationTime: Date?
  • Entry’s last modification time.

    Set from different sources in the following preference order:

    1. Extended timestamp extra field (most common on UNIX-like systems).
    2. NTFS extra field.
    3. ZIP container’s own storage (in Central Directory entry).

    Declaration

    Swift

    public let modificationTime: Date?
  • Entry’s permissions in POSIX format. May have meaningless value if origin file system’s attributes weren’t POSIX compatible.

    Declaration

    Swift

    public let permissions: Permissions?