Contents

withNameUpdating

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

Declaration

static var withNameUpdating: FileWrapper.WritingOptions { get }

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