---
title: target_file
framework: endpointsecurity
role: symbol
role_heading: Instance Property
path: endpointsecurity/es_event_copyfile_t/target_file
---

# target_file

The file, if any, that exists at the target location.

## Declaration

```swift
var target_file: UnsafeMutablePointer<es_file_t>?
```

## Discussion

Discussion The copy file operation overwrites this file if the operation completes. If no file exists at the target location, this value is NULL.

## See Also

### Inspecting Event Properties

- [source](endpointsecurity/es_event_copyfile_t/source.md)
- [target_dir](endpointsecurity/es_event_copyfile_t/target_dir.md)
- [target_name](endpointsecurity/es_event_copyfile_t/target_name.md)
- [mode](endpointsecurity/es_event_copyfile_t/mode.md)
- [flags](endpointsecurity/es_event_copyfile_t/flags.md)
- [reserved](endpointsecurity/es_event_copyfile_t/reserved.md)
