---
title: contentIndependentMetadataOnly
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/nsfilecoordinator/writingoptions/contentindependentmetadataonly
---

# contentIndependentMetadataOnly

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

## Declaration

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

## Discussion

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 is supported, but changing the value of contentModificationDateKey is not.

## See Also

### Constants

- [forDeleting](foundation/nsfilecoordinator/writingoptions/fordeleting.md)
- [forMoving](foundation/nsfilecoordinator/writingoptions/formoving.md)
- [forMerging](foundation/nsfilecoordinator/writingoptions/formerging.md)
- [forReplacing](foundation/nsfilecoordinator/writingoptions/forreplacing.md)
