---
title: FileType
framework: system
role: symbol
role_heading: Structure
path: system/filetype
---

# FileType

A file type matching those contained in a C mode_t.

## Declaration

```swift
@frozen struct FileType
```

## Overview

Overview note: Only available on Unix-like platforms.

## Topics

### Initializers

- [init(rawValue:)](system/filetype/init(rawvalue:).md)

### Instance Properties

- [rawValue](system/filetype/rawvalue.md)

### Type Properties

- [blockSpecial](system/filetype/blockspecial.md)
- [characterSpecial](system/filetype/characterspecial.md)
- [directory](system/filetype/directory.md)
- [fifo](system/filetype/fifo.md)
- [regular](system/filetype/regular.md)
- [socket](system/filetype/socket.md)
- [symbolicLink](system/filetype/symboliclink.md)
- [whiteout](system/filetype/whiteout.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)
