<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "EndpointSecurity",
  "identifier" : "/documentation/EndpointSecurity/es_destination_type_t",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Endpoint Security"
    ],
    "preciseIdentifier" : "c:@EA@es_destination_type_t"
  },
  "title" : "es_destination_type_t"
}
-->

# es_destination_type_t

A type that indicates how a file event presents its destination to the client.

```
struct es_destination_type_t
```

## Overview

Use this type to determine how to parse file information in types like [`es_event_create_t`](/documentation/EndpointSecurity/es_event_create_t) and [`es_event_rename_t`](/documentation/EndpointSecurity/es_event_rename_t). Both of those types have a `destination` member, which is a `union` of either an existing file path or a parent directory and name of a potential file. To determine which member of the union to access, consult the event’s `destination_type` member, which is of this type.

## Topics

### Destination Types

[`ES_DESTINATION_TYPE_EXISTING_FILE`](/documentation/EndpointSecurity/ES_DESTINATION_TYPE_EXISTING_FILE)

The destination is an existing file.

[`ES_DESTINATION_TYPE_NEW_PATH`](/documentation/EndpointSecurity/ES_DESTINATION_TYPE_NEW_PATH)

The destination is a path to a new location.

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Equatable`](/documentation/Swift/Equatable)

[`Sendable`](/documentation/Swift/Sendable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)