---
title: "init(root:components:)"
framework: system
role: symbol
role_heading: Initializer
path: "system/filepath/init(root:components:)"
---

# init(root:components:)

Create a file path from a root and any number of components.

## Declaration

```swift
init(root: FilePath.Root?, components: FilePath.Component...)
```
