# Entry Structure Reference



## Scope and provenance

- Product: mobile
- Status: Imported reference snapshot. Import date is not a verification date or guarantee of current release support.
- SDK version: Not declared for this page. Versions in examples must not be assumed current.
- Environment: Page-specific. Confirm the environment host, credentials, and service configuration; do not infer them from another product.
- Source: https://documentation.idmission.com/identity/iOS-SDK-2/Structs/Entry.html
- Imported at: 2026-10-21T17:27:02.187Z
- Canonical page: https://docs.idmission.com/mobile/reference/ios/Structs/Entry
- Agent index: https://docs.idmission.com/llms.txt

---

<a id="entry"></a>

# 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`.

- <a id="/s:17IDentitySDK_Swift5EntryV0D4TypeO"></a>

  <a id="//apple_ref/swift/Enum/EntryType"></a>

  `EntryType`

  The type of an `Entry` in a ZIP `Archive`.

  [See more](https://docs.idmission.com/markdown/mobile/reference/ios/Structs/Entry/EntryType.md)

  <a id="declaration"></a>

  #### Declaration

  Swift

  ```
  public enum EntryType : Int
  ```

- <a id="/s:17IDentitySDK_Swift5EntryV4path5usingS2S10FoundationE8EncodingV_tF"></a>

  <a id="//apple_ref/swift/Method/path(using:)"></a>

  `path(using:)`

  Returns the `path` of the receiver within a ZIP `Archive` using a given encoding.

  <a id="declaration-2"></a>

  #### Declaration

  Swift

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

  <a id="parameters"></a>

  #### Parameters

  |            |                    |
  | ---------- | ------------------ |
  | `encoding` | `String.Encoding`  |

- <a id="/s:17IDentitySDK_Swift5EntryV4pathSSvp"></a>

  <a id="//apple_ref/swift/Property/path"></a>

  `path`

  The `path` of the receiver within a ZIP `Archive`.

  <a id="declaration-3"></a>

  #### Declaration

  Swift

  ```
  public var path: String { get }
  ```

- <a id="/s:17IDentitySDK_Swift5EntryV14fileAttributesSDySo18NSFileAttributeKeyaypGvp"></a>

  <a id="//apple_ref/swift/Property/fileAttributes"></a>

  `fileAttributes`

  The file attributes of the receiver as key/value pairs.

  Contains the modification date and file permissions.

  <a id="declaration-4"></a>

  #### Declaration

  Swift

  ```
  public var fileAttributes: [FileAttributeKey : Any] { get }
  ```

- <a id="/s:17IDentitySDK_Swift5EntryV8checksums6UInt32Vvp"></a>

  <a id="//apple_ref/swift/Property/checksum"></a>

  `checksum`

  The `CRC32` checksum of the receiver.

  Note

  Always returns `0` for entries of type `EntryType.directory`.

  <a id="declaration-5"></a>

  #### Declaration

  Swift

  ```
  public var checksum: CRC32 { get }
  ```

- <a id="/s:17IDentitySDK_Swift5EntryV4typeAC0D4TypeOvp"></a>

  <a id="//apple_ref/swift/Property/type"></a>

  `type`

  The `EntryType` of the receiver.

  <a id="declaration-6"></a>

  #### Declaration

  Swift

  ```
  public var type: EntryType { get }
  ```

- <a id="/s:17IDentitySDK_Swift5EntryV12isCompressedSbvp"></a>

  <a id="//apple_ref/swift/Property/isCompressed"></a>

  `isCompressed`

  Indicates whether or not the receiver is compressed.

  <a id="declaration-7"></a>

  #### Declaration

  Swift

  ```
  public var isCompressed: Bool { get }
  ```

- <a id="/s:17IDentitySDK_Swift5EntryV14compressedSizes6UInt64Vvp"></a>

  <a id="//apple_ref/swift/Property/compressedSize"></a>

  `compressedSize`

  The size of the receiver’s compressed data.

  <a id="declaration-8"></a>

  #### Declaration

  Swift

  ```
  public var compressedSize: UInt64 { get }
  ```

- <a id="/s:17IDentitySDK_Swift5EntryV16uncompressedSizes6UInt64Vvp"></a>

  <a id="//apple_ref/swift/Property/uncompressedSize"></a>

  `uncompressedSize`

  The size of the receiver’s uncompressed data.

  <a id="declaration-9"></a>

  #### Declaration

  Swift

  ```
  public var uncompressedSize: UInt64 { get }
  ```

- <a id="/s:SQ2eeoiySbx_xtFZ"></a>

  <a id="//apple_ref/swift/Method/==(_:_:)"></a>

  `==(_:_:)`

  <a id="declaration-10"></a>

  #### Declaration

  Swift

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

<a id="footer"></a>

© 2024 [IDmission](https://www.idmission.com/). All rights reserved. (Last updated: 2024-08-27)

Generated by [jazzy ♪♫ v0.14.2](https://github.com/realm/jazzy), a [Realm](https://realm.io/) project.
