<!--
{
  "availability" : [
    "macOS: 15.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FSKit",
  "identifier" : "/documentation/FSKit/FSVolume/OpenModes",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "FSKit"
    ],
    "preciseIdentifier" : "c:@E@FSVolumeOpenModes"
  },
  "title" : "FSVolume.OpenModes"
}
-->

# FSVolume.OpenModes

Defined modes for opening a file.

```
struct OpenModes
```

## Topics

### Declaring open modes

[`read`](/documentation/FSKit/FSVolume/OpenModes/read)

The read mode.

[`write`](/documentation/FSKit/FSVolume/OpenModes/write)

The write mode.

### Working with raw values

[`init(rawValue:)`](/documentation/FSKit/FSVolume/OpenModes/init(rawValue:))



---

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)