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:
- Extended timestamp extra field (most common on UNIX-like systems).
- 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:
- Extended timestamp extra field (most common on UNIX-like systems).
- NTFS extra field.
Declaration
Swift
public let creationTime: Date?
-
Entry’s last modification time.
Set from different sources in the following preference order:
- Extended timestamp extra field (most common on UNIX-like systems).
- NTFS extra field.
- 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?
-
Entry’s comment.
Declaration
Swift
public let comment: String
-
Entry’s external file attributes. ZIP internal property. May be useful when origin file system’s attributes weren’t POSIX compatible.
Declaration
Swift
public let externalFileAttributes: UInt32
-
Entry’s attributes in DOS format.
Declaration
Swift
public let dosAttributes: DosAttributes?
-
True, if entry is likely to be text or ASCII file.
Declaration
Swift
public let isTextFile: Bool
-
File system type of container’s origin.
Declaration
Swift
public let fileSystemType: FileSystemType
-
Entry’s compression method.
Declaration
Swift
public let compressionMethod: CompressionMethod
-
ID of entry’s owner.
Set from different sources in the following preference order, if possible:
- Info-ZIP New Unix extra field.
- Info-ZIP Unix extra field.
Declaration
Swift
public let ownerID: Int?
-
ID of the group of entry’s owner.
Set from different sources in the following preference order, if possible:
- Info-ZIP New Unix extra field.
- Info-ZIP Unix extra field.
Declaration
Swift
public let groupID: Int?
-
Entry’s custom extra fields from both Central Directory and Local Header.
Note
No particular order of extra fields is guaranteed.Declaration
Swift
public let customExtraFields: [ZipExtraField]
-
CRC32 of entry’s data.
Declaration
Swift
public let crc: UInt32