---
title: withNameUpdating
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/filewrapper/writingoptions/withnameupdating
---

# withNameUpdating

Whether descendant file wrappers’filename properties are set if the writing succeeds.

## Declaration

```swift
static var withNameUpdating: FileWrapper.WritingOptions { get }
```

## Discussion

Discussion This option is necessary when your application passes a URL in the originalContentsURL parameter to the write(to:options:originalContentsURL:) method. Without using this option (and reusing child file wrappers properly), subsequent invocations of write(to:options:originalContentsURL:) would not be able to reliably create hard links in a new file package, because the record of names in the old file package would be out of date.

## See Also

### Constants

- [atomic](foundation/filewrapper/writingoptions/atomic.md)
