---
title: "init(_:)"
framework: swift-package-manager
role: symbol
role_heading: Initializer
path: "swift-package-manager/documentation/packageplugin/path/init(_:)"
---

# init(_:)

Initializes the path from the contents a string, which should be an absolute path in platform representation.

## Declaration

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