TarEntryInfo

public struct TarEntryInfo: ContainerEntryInfo

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

  • Entry’s name.

    Depending on the particular format of the container, different container’s structures are used to set this property, in the following preference order:

    1. Local PAX extended header path property.
    2. Global PAX extended header path property.
    3. GNU format type L (LongName) entry.
    4. Default TAR header.

    Declaration

    Swift

    public let name: String
  • Entry’s data size.

    Declaration

    Swift

    public let size: Int?
  • Declaration

    Swift

    public let type: ContainerEntryType
  • Entry’s last access time (nil, if not available; can only be available for PAX format).

    Declaration

    Swift

    public let accessTime: Date?
  • Entry’s creation time (nil, if not available; can only be available for PAX format).

    Declaration

    Swift

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

    Declaration

    Swift

    public let modificationTime: Date?
  • Declaration

    Swift

    public let permissions: Permissions?
  • ID of entry’s owner.

    Declaration

    Swift

    public let ownerID: Int?
  • ID of the group of entry’s owner.

    Declaration

    Swift

    public let groupID: Int?
  • User name of entry’s owner.

    Declaration

    Swift

    public let ownerUserName: String?
  • Name of the group of entry’s owner.

    Declaration

    Swift

    public let ownerGroupName: String?
  • Device major number.

    Declaration

    Swift

    public let deviceMajorNumber: Int?
  • Device minor number.

    Declaration

    Swift

    public let deviceMinorNumber: Int?
  • Name of the character set used to encode entry’s data (can only be available for PAX format).

    Declaration

    Swift

    public let charset: String?
  • Entry’s comment (can only be available for PAX format).

    Declaration

    Swift

    public let comment: String?
  • Path to a linked file for symbolic link entry.

    Depending on the particular format of the container, different container’s structures are used to set this property, in the following preference order:

    1. Local PAX extended header linkpath property.
    2. Global PAX extended header linkpath property.
    3. GNU format type K (LongLink) entry.
    4. Default TAR header.

    Declaration

    Swift

    public let linkName: String