---
title: "init(_:)"
framework: system
role: symbol
role_heading: Initializer
path: "system/filepath/init(_:)-2gkpw"
---

# init(_:)

Creates a file path from a URL

## Declaration

```swift
init?(_ url: URL)
```

## Discussion

Discussion The result is nil if url doesn’t refer to a local file.
