<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSFileCoordinator/WritingOptions/contentIndependentMetadataOnly",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@E@NSFileCoordinatorWritingOptions@NSFileCoordinatorWritingContentIndependentMetadataOnly"
  },
  "title" : "contentIndependentMetadataOnly"
}
-->

# contentIndependentMetadataOnly

Select this option when writing to change the file’s metadata only and not its contents.

```
static var contentIndependentMetadataOnly: NSFileCoordinator.WritingOptions { get }
```

## Discussion

Any changes written to the item’s contents during this coordinated write may not be preserved or may fail. Changing metadata that is related to the item’s content is also not supported, and those changes may not be preserved. For example, changing the value of [`tagNamesKey`](/documentation/Foundation/URLResourceKey/tagNamesKey) is supported, but changing the value of [`contentModificationDateKey`](/documentation/Foundation/URLResourceKey/contentModificationDateKey) is not.

---

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)