---
title: FileManager.ItemReplacementOptions
framework: foundation
role: symbol
role_heading: Structure
path: foundation/filemanager/itemreplacementoptions
---

# FileManager.ItemReplacementOptions

Options for specifying the behavior of file replacement operations.

## Declaration

```swift
struct ItemReplacementOptions
```

## Overview

Overview These options are used by replaceItem(at:withItemAt:backupItemName:options:resultingItemURL:).

## Topics

### Using File Replacement Options

- [init(rawValue:)](foundation/filemanager/itemreplacementoptions/init(rawvalue:).md)
- [usingNewMetadataOnly](foundation/filemanager/itemreplacementoptions/usingnewmetadataonly.md)
- [withoutDeletingBackupItem](foundation/filemanager/itemreplacementoptions/withoutdeletingbackupitem.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)

## See Also

### Replacing items

- [replaceItemAt(_:withItemAt:backupItemName:options:)](foundation/filemanager/replaceitemat(_:withitemat:backupitemname:options:).md)
- [replaceItem(at:withItemAt:backupItemName:options:resultingItemURL:)](foundation/filemanager/replaceitem(at:withitemat:backupitemname:options:resultingitemurl:).md)
