<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppMigrationKit",
  "identifier" : "/documentation/AppMigrationKit/ResourcesArchiver/appendItem(at:pathInArchive:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppMigrationKit"
    ],
    "preciseIdentifier" : "s:15AppMigrationKit17ResourcesArchiverC10appendItem2at13pathInArchivey10Foundation3URLV_SSSgtYaKF"
  },
  "title" : "appendItem(at:pathInArchive:)"
}
-->

# appendItem(at:pathInArchive:)

Sends a file to the archiver for export.

```
final func appendItem(at url: URL, pathInArchive: String? = nil) async throws
```

## Parameters

`url`

The URL of a file to export. If this value doesn’t contain a path, the archiver infers a path based on the last path component of the URL.

`pathInArchive`

A path relative to the root URL to use when the receiving device imports this resource. The migration system uses this value as-is and performs no normalizations.

---

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)