---
title: "init(_:)"
framework: system
role: symbol
role_heading: Initializer
path: "system/filepath/root-swift.struct/init(_:)"
---

# init(_:)

Create a file path root from a string.

## Declaration

```swift
init?(_ string: String)
```

## Discussion

Discussion Returns nil if string is empty or is not a root.
