---
title: FileMode
framework: system
role: symbol
role_heading: Structure
path: system/filemode
---

# FileMode

A strongly-typed file mode representing a C mode_t.

## Declaration

```swift
@frozen struct FileMode
```

## Overview

Overview note: Only available on Unix-like platforms.

## Topics

### Initializers

- [init(rawValue:)](system/filemode/init(rawvalue:).md)
- [init(type:permissions:)](system/filemode/init(type:permissions:).md)

### Instance Properties

- [permissions](system/filemode/permissions.md)
- [rawValue](system/filemode/rawvalue.md)
- [type](system/filemode/type.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Copyable](swift/copyable.md)
- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
