---
title: "init(directory:path:flags:)"
framework: applearchive
role: symbol
role_heading: Initializer
path: "applearchive/archiveheader/entryxatblob/init(directory:path:flags:)"
---

# init(directory:path:flags:)

Creates a new extended attribute blob from the specified directory and path.

## Declaration

```swift
init?(directory: FilePath, path: FilePath, flags: ArchiveFlags)
```

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

## See Also

### Creating an Extended Attributes Blob

- [init()](applearchive/archiveheader/entryxatblob/init().md)
- [init(withAAEncodedData:)](applearchive/archiveheader/entryxatblob/init(withaaencodeddata:).md)
