---
title: "init(type:permissions:)"
framework: system
role: symbol
role_heading: Initializer
path: "system/filemode/init(type:permissions:)"
---

# init(type:permissions:)

Creates a FileMode from the given file type and permissions.

## Declaration

```swift
init(type: FileType, permissions: FilePermissions)
```

## Discussion

Discussion note: This initializer masks the inputs with their respective bit masks.
