<!--
{
  "availability" : [
    "macOS: 27.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FSKit",
  "identifier" : "/documentation/FSKit/FSVolume/RenameFlags/swap",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "FSKit"
    ],
    "preciseIdentifier" : "c:@E@FSRenameFlags@FSRenameFlagsSwap"
  },
  "title" : "swap"
}
-->

# swap

Atomically exchange the source and destination items, as with `RENAME_SWAP`.

```
static var swap: FSVolume.RenameFlags { get }
```

## Discussion

Both the source and destination must exist. On success, the two items are exchanged.

---

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)