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

# init(stringLiteral:)

Create a file path root from a string literal.

## Declaration

```swift
init(stringLiteral: String)
```

## Discussion

Discussion Precondition: stringLiteral is non-empty and is a root.
