---
title: "apply(directory:path:flags:)"
framework: applearchive
role: symbol
role_heading: Instance Method
path: "applearchive/archiveheader/entryxatblob/apply(directory:path:flags:)"
---

# apply(directory:path:flags:)

Applies extended attributes to a filesystem object.

## Declaration

```swift
func apply(directory: FilePath, path: FilePath, flags: ArchiveFlags = []) throws
```

## Parameters

- `directory`: The base directory of the filesystem object.
- `path`: The path, relative to directory, to target filesystem object.
- `flags`: Flags that control the behavior of the operation.
