<!--
{
  "availability" : [
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSMutableAttributedString/updateAttachments(fromPath:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSMutableAttributedString(im)updateAttachmentsFromPath:"
  },
  "title" : "updateAttachments(fromPath:)"
}
-->

# updateAttachments(fromPath:)

Updates all attachments based on files contained in the RTFD file package at the specified file path.

```
func updateAttachments(fromPath path: String)
```

## Parameters

`path`

The path to the file package.

## See Also

[`update(fromPath:)`](/documentation/Foundation/FileWrapper/update(fromPath:))

Updates the file wrapper to match a given file-system node.



---

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)