<!--
{
  "availability" : [
    "macOS: 27.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FSKit",
  "identifier" : "/documentation/FSKit/FSVolume/Handler/supportedRenameFlags",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "FSKit"
    ],
    "preciseIdentifier" : "c:objc(pl)FSVolumeHandler(py)supportedRenameFlags"
  },
  "title" : "supportedRenameFlags"
}
-->

# supportedRenameFlags

The subset of `renamex_np(2)` flags this volume can honor.

```
optional var supportedRenameFlags: FSVolume.RenameFlags { get }
```

## Discussion

Implement this property alongside [`renameItem(_:inDirectory:named:to:inDirectory:overItem:flags:context:replyHandler:)`](/documentation/FSKit/FSVolume/Handler/renameItem(_:inDirectory:named:to:inDirectory:overItem:flags:context:replyHandler:)) to declare which flags your file system supports. FSKit advertises the matching interface capabilities — `VOL_CAP_INT_RENAME_SWAP` for `FSRenameFlags/swap` and `VOL_CAP_INT_RENAME_EXCL` for `FSRenameFlags/exclusive` — so applications can discover them with `getattrlist(2)`.

> Note: FSKit will fail any rename requesting a flag that isn’t included here with an error code of `ENOTSUP`. If you don’t implement this property, FSKit assumes the volume supports no rename flags, and fails every flagged `renamex_np(2)` with `ENOTSUP`.

FSKit reads this value after the file system replies to the `loadResource` message.
Changing the returned value during the runtime of the volume has no effect.

---

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)