---
title: "file(url:)"
framework: appintents
role: symbol
role_heading: Type Method
path: "appintents/fileentityidentifier/file(url:)"
---

# file(url:)

Creates and returns an identifier with the provided URL to the file on disk.

## Declaration

```swift
static func file(url: URL) throws -> FileEntityIdentifier
```
