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

# init(root:_:)

Create a file path from a root and a collection of components.

## Declaration

```swift
init<C>(root: FilePath.Root?, _ components: C) where C : Collection, C.Element == FilePath.Component
```
